24h time
This commit is contained in:
@ -18,7 +18,7 @@ import java.util.Map;
|
|||||||
* favorite plotting tool)
|
* favorite plotting tool)
|
||||||
*/
|
*/
|
||||||
public class StatLogSplitter {
|
public class StatLogSplitter {
|
||||||
private static final String DATE_FORMAT = "yyyyMMdd hh:mm:ss.SSS";
|
private static final String DATE_FORMAT = "yyyyMMdd HH:mm:ss.SSS";
|
||||||
private static SimpleDateFormat _fmt = new SimpleDateFormat(DATE_FORMAT);
|
private static SimpleDateFormat _fmt = new SimpleDateFormat(DATE_FORMAT);
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
if (args.length != 1) {
|
if (args.length != 1) {
|
||||||
@ -56,7 +56,8 @@ public class StatLogSplitter {
|
|||||||
}
|
}
|
||||||
FileWriter out = (FileWriter)outputFiles.get(stat);
|
FileWriter out = (FileWriter)outputFiles.get(stat);
|
||||||
double s = (when.getTime()-first)/1000.0;
|
double s = (when.getTime()-first)/1000.0;
|
||||||
out.write(s + " " + val + "\n");
|
//long s = when.getTime();
|
||||||
|
out.write(s + " " + val + " [" + line + "]\n");
|
||||||
out.flush();
|
out.flush();
|
||||||
} catch (ParseException pe) {
|
} catch (ParseException pe) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user