propagate from branch 'i2p.i2p' (head 098e31ae6c0969990791077264bfd58d8ac3680c)

to branch 'i2p.i2p.str4d.ui' (head 0cfd439957ebce6c3a71f5b3e11f4e873388b03c)
This commit is contained in:
str4d
2017-05-14 06:53:02 +00:00
796 changed files with 54568 additions and 10785 deletions

View File

@@ -1566,17 +1566,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 + " ";
}
}