forked from I2P_Developers/i2p.i2p
Graphs: Show milli values as 0.xxx rather than xxx m
This commit is contained in:
@ -145,7 +145,10 @@ class ValueAxis extends Axis {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (fractional) {
|
||||
if (im.symbol == 'm') {
|
||||
// I2P show 0.xxx instead of xxx m
|
||||
graph_label = Util.sprintf(gdef.locale, "%.3f", scaledstep * i / 1000);
|
||||
} else if (fractional) {
|
||||
graph_label = Util.sprintf(gdef.locale, "%4.1f %c", scaledstep * i, im.symbol);
|
||||
}
|
||||
else {
|
||||
|
@ -47,6 +47,11 @@ class ValueScaler {
|
||||
}
|
||||
if (sindex <= SYMB_CENTER && sindex >= -SYMB_CENTER) {
|
||||
unit = UNIT_SYMBOLS[sindex + SYMB_CENTER];
|
||||
// I2P show 0.xxx instead of xxx m
|
||||
if (unit.equals("m")) {
|
||||
unit = "";
|
||||
magfact *= 1000;
|
||||
}
|
||||
}
|
||||
else {
|
||||
unit = UNIT_UNKNOWN;
|
||||
|
Reference in New Issue
Block a user