Merge branch 'fix/ui' into 'master'

Fix: ui, human start counting at 1 not 0

See merge request sheepitrenderfarm/client!269
This commit is contained in:
Sheepit Renderfarm
2023-11-11 08:48:56 +00:00

View File

@@ -865,7 +865,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;
}