auto-sync

This commit is contained in:
rusEfi 2016-05-28 20:01:47 -04:00
parent 31f3cf8722
commit 3ea34c511f
2 changed files with 8 additions and 3 deletions

View File

@ -68,7 +68,7 @@ public enum FileLog {
}
public static String getDate() {
return new SimpleDateFormat("yyyy-MM-dd HH_mm").format(new Date());
return new SimpleDateFormat("yyyy-MM-dd_HH_mm").format(new Date());
}
public synchronized void logLine(String fullLine) {

View File

@ -15,8 +15,13 @@ public class AverageAnglesUtil {
private static int currentRpm = -1;
public static void main(String[] args) throws IOException {
runUtil("a.csv", Logger.CONSOLE);
}
if (args.length != 1) {
System.out.println("One parameter expected: log_file_name.csv");
System.exit(-1);
}
String fileName = args[0];
runUtil(fileName, Logger.CONSOLE);
}
public static String runUtil(String fileName, Logger logger) throws IOException {
BufferedReader br = new BufferedReader(new FileReader(fileName));