SplashScreen: Ceiling download total

This commit is contained in:
Max Weber
2019-11-30 22:21:46 -07:00
parent 754ea00789
commit 7ff327c57e

View File

@@ -206,8 +206,9 @@ public class SplashScreen extends JFrame implements ActionListener
String progress;
if (mib)
{
final double MiB = 1024 * 1042;
progress = String.format("%.1f / %.1f MiB", done / MiB, total / MiB);
final double MiB = 1024 * 1024;
final double CEIL = 1.d / 10.d;
progress = String.format("%.1f / %.1f MiB", done / MiB, (total / MiB) + CEIL);
}
else
{