forked from I2P_Developers/i2p.i2p
Replace with thin non-breaking space   for byte sizes
The latter has more consistent/predictable width between fonts & point sizes.
This commit is contained in:
@@ -1560,17 +1560,19 @@ public class DataHelper {
|
||||
|
||||
DecimalFormat fmt = new DecimalFormat("##0.00");
|
||||
|
||||
// Replace with thin non-breaking space   (more consistent/predictable width between fonts & point sizes)
|
||||
|
||||
String str = fmt.format(val);
|
||||
switch (scale) {
|
||||
case 1: return str + " K";
|
||||
case 2: return str + " M";
|
||||
case 3: return str + " G";
|
||||
case 4: return str + " T";
|
||||
case 5: return str + " P";
|
||||
case 6: return str + " E";
|
||||
case 7: return str + " Z";
|
||||
case 8: return str + " Y";
|
||||
default: return bytes + " ";
|
||||
case 1: return str + " K";
|
||||
case 2: return str + " M";
|
||||
case 3: return str + " G";
|
||||
case 4: return str + " T";
|
||||
case 5: return str + " P";
|
||||
case 6: return str + " E";
|
||||
case 7: return str + " Z";
|
||||
case 8: return str + " Y";
|
||||
default: return bytes + " ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user