mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 11:15: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;
|
||||
|
||||
if (fileSize > 0) {
|
||||
int progress = (int)((double)downloaded / (double)fileSize * 100);
|
||||
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap... (%d%%)", type, progress));
|
||||
double progress = (double)downloaded / (double)fileSize * 100;
|
||||
SplashFrame.getInstance().updateStatus(String.format("Downloading %s bootstrap... (%.1f%%)", type, progress));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user