From 07d7b3bd244c61386f11c7a680e24072a5b827b7 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 22 Dec 2022 15:28:59 +0100 Subject: [PATCH] Set `tried` counter to 1, since it's set after the first try (#338) --- app/apps/ConvertUpdates.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/apps/ConvertUpdates.java b/app/apps/ConvertUpdates.java index 0f111a1..68d2f95 100644 --- a/app/apps/ConvertUpdates.java +++ b/app/apps/ConvertUpdates.java @@ -52,7 +52,7 @@ public static void main(String[] args) throws IOException, InterruptedException String endOfUpdates = args.length == 2 ? args[1] : null; Pair startAndEnd = getUpdatesAndConvert(args[0], endOfUpdates); File dataUpdate = new File(config("data.updates.data")); - short tried = 0; + short tried = 1; while (dataUpdate.length() == 0 ) { tried++; System.err.println("Tried " + tried