SplashScreen: Ceiling download total
This commit is contained in:
@@ -206,8 +206,9 @@ public class SplashScreen extends JFrame implements ActionListener
|
|||||||
String progress;
|
String progress;
|
||||||
if (mib)
|
if (mib)
|
||||||
{
|
{
|
||||||
final double MiB = 1024 * 1042;
|
final double MiB = 1024 * 1024;
|
||||||
progress = String.format("%.1f / %.1f MiB", done / MiB, total / MiB);
|
final double CEIL = 1.d / 10.d;
|
||||||
|
progress = String.format("%.1f / %.1f MiB", done / MiB, (total / MiB) + CEIL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user