altosui: Adjust graph voltage tool-tip value format
authorKeith Packard <keithp@keithp.com>
Sun, 10 Feb 2013 08:40:59 +0000 (00:40 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 10 Feb 2013 08:40:59 +0000 (00:40 -0800)
Voltages are always small, so use more of the space for the
fractional value.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosGraph.java

index 9383824a15b59e37bff93428acba2a0b258c9d85..5bd756ecc1c4c0f1db3bc99b592ccbb3b4360ba1 100644 (file)
@@ -50,7 +50,7 @@ class AltosVoltage extends AltosUnits {
        }
 
        public int show_fraction(int width) {
-               return width / 9;
+               return width / 2;
        }
 }