mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-15 03:35:49 +00:00
add decimal precision to download progress
This commit is contained in:
parent
f8ffeed302
commit
6edbc8b6a5
@ -419,8 +419,8 @@ public class Bootstrap {
|
|||||||
downloaded += bytesRead;
|
downloaded += bytesRead;
|
||||||
|
|
||||||
if (fileSize > 0) {
|
if (fileSize > 0) {
|
||||||
int progress = (int)((double)downloaded / (double)fileSize * 100);
|
double progress = (double)downloaded / (double)fileSize * 100;
|
||||||
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap... (%d%%)", type, progress));
|
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap... (%.1f%%)", type, progress));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user