From 7996f1e596ff4256019d45d0fad1e0e5593ef717 Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Thu, 9 Nov 2023 14:23:08 +0100 Subject: [PATCH] Fix: ui, human start counting at 1 not 0 --- src/main/java/com/sheepit/client/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sheepit/client/Client.java b/src/main/java/com/sheepit/client/Client.java index 1a48e9d..32effb8 100644 --- a/src/main/java/com/sheepit/client/Client.java +++ b/src/main/java/com/sheepit/client/Client.java @@ -866,7 +866,7 @@ import okhttp3.HttpUrl; int total = ajob_.getArchiveChunks().size(); for (int i = 0; i < total; i++) { Chunk chunk = ajob_.getArchiveChunks().get(i); - Error.Type ret = this.downloadFile(ajob_, ajob_.getRequiredProjectChunkPath(chunk.getId()), chunk.getMd5(), String.format(LOCALE, "%s?chunk=%s", this.server.getPage("download-chunk"), chunk.getId()), String.format(LOCALE, "chunk %d/%d", i, total)); + Error.Type ret = this.downloadFile(ajob_, ajob_.getRequiredProjectChunkPath(chunk.getId()), chunk.getMd5(), String.format(LOCALE, "%s?chunk=%s", this.server.getPage("download-chunk"), chunk.getId()), String.format(LOCALE, "chunk %d/%d", i + 1, total)); if (ret != Type.OK) { return ret; }