NUM_LENGTH should be 1024 for accurate download progess display

unless NUM_LENGTH is 1024, the displayed size is 0KB or 0MB etc. for growing ranges below the respective boundary i.e. 1000-1023, 1024000-1048575
This commit is contained in:
Matthias Schütz 2014-05-07 09:09:15 +02:00
parent ae849077c7
commit bea0876a99
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public final class Converter {
/** Indicates that the value is in the Gigabyte range.*/
private static final int GB_RANGE = 3;
/** Determines the length of the number for best readability.*/
private static final int NUM_LENGTH = 1000;
private static final int NUM_LENGTH = 1024;
private static final int HOURS_MIL = 3600000;