auto-sync
This commit is contained in:
parent
31f3cf8722
commit
3ea34c511f
|
@ -68,7 +68,7 @@ public enum FileLog {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getDate() {
|
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) {
|
public synchronized void logLine(String fullLine) {
|
||||||
|
|
|
@ -15,7 +15,12 @@ public class AverageAnglesUtil {
|
||||||
private static int currentRpm = -1;
|
private static int currentRpm = -1;
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException {
|
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 {
|
public static String runUtil(String fileName, Logger logger) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue