diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-01-12 16:43:49 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-01-12 16:43:49 -0600 |
commit | a43f1c33bba98ecde06dde674a214f61d4d23268 (patch) | |
tree | 48b6cebae12af72725aee81524f13e0192f86544 /src | |
parent | d989c88526f6640c8c336ecc1472314987412e54 (diff) | |
download | ayatana-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
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 2 |
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"; |