diff --git a/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java b/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java index 1566b736c6..32f279ffc1 100644 --- a/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java +++ b/java_console/autoupdate/src/com/rusefi/autoupdate/Autoupdate.java @@ -74,6 +74,7 @@ public class Autoupdate { try { String zipFileName = bundleFullName + "_autoupdate" + ".zip"; ConnectionAndMeta connectionAndMeta = new ConnectionAndMeta(zipFileName).invoke(); + System.out.println("Server has " + connectionAndMeta.completeFileSize + " from " + new Date(connectionAndMeta.getLastModified())); if (hasExistingFile(zipFileName, connectionAndMeta.getCompleteFileSize(), connectionAndMeta.getLastModified())) { System.out.println("We already have latest update " + new Date(connectionAndMeta.getLastModified())); @@ -218,6 +219,7 @@ public class Autoupdate { private static boolean hasExistingFile(String zipFileName, long completeFileSize, long lastModified) { File file = new File(zipFileName); + System.out.println("We have " + file.length() + " " + new Date(file.lastModified())); return file.length() == completeFileSize && file.lastModified() == lastModified; }