SplashScreen: Ceiling download total
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user