aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-01-12 16:43:49 -0600
committerCharles Kerr <charles.kerr@canonical.com>2015-01-12 16:43:49 -0600
commita43f1c33bba98ecde06dde674a214f61d4d23268 (patch)
tree48b6cebae12af72725aee81524f13e0192f86544
parentd989c88526f6640c8c336ecc1472314987412e54 (diff)
downloadayatana-indicator-power-a43f1c33bba98ecde06dde674a214f61d4d23268.tar.gz
ayatana-indicator-power-a43f1c33bba98ecde06dde674a214f61d4d23268.tar.bz2
ayatana-indicator-power-a43f1c33bba98ecde06dde674a214f61d4d23268.zip
fix fencepost error s.t. 20% actually uses battery-020
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 70c3cc0..5597c37 100644
--- a/src/device.c
+++ b/src/device.c
@@ -328,7 +328,7 @@ get_closest_10_percent_percentage (gdouble percentage)
if (percentage >= 55) return "060";
if (percentage >= 45) return "050";
if (percentage >= 35) return "040";
- if (percentage >= 20) return "030"; /* 20 rather than 25: see bug #1388235 */
+ if (percentage >= 21) return "030"; /* don't round down to 20: see bug #1388235 */
if (percentage >= 15) return "020";
if (percentage >= 5) return "010";
return "000";