aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-23 12:07:06 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-23 12:07:06 -0500
commitb1f32d5edaf6291f03985584fca84a6180fafccb (patch)
tree858c08bfae1255b4611b26b447c0b2baea69500f
parente079d4b70552a9cc5a44d6c8df2153cbcec1de78 (diff)
downloadayatana-indicator-power-b1f32d5edaf6291f03985584fca84a6180fafccb.tar.gz
ayatana-indicator-power-b1f32d5edaf6291f03985584fca84a6180fafccb.tar.bz2
ayatana-indicator-power-b1f32d5edaf6291f03985584fca84a6180fafccb.zip
as per the changes in https://wiki.ubuntu.com/Power?action=diff&rev2=39&rev1=38, hide the discharge time remaining if it's > 24 hours
-rw-r--r--src/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index 26b4c04..9dc4647 100644
--- a/src/device.c
+++ b/src/device.c
@@ -631,7 +631,7 @@ indicator_power_device_get_text (const IndicatorPowerDevice * device,
g_string_printf (verbose_time, _("%s to charge"), readable_timestr);
g_string_printf (accessible_time, _("%s to charge"), accessible_timestr);
}
- else if ((state == UP_DEVICE_STATE_DISCHARGING) && (time <= (60*60*12)))
+ else if ((state == UP_DEVICE_STATE_DISCHARGING) && (time <= (60*60*24)))
{
g_string_assign (terse_time, readable_timestr);
g_string_printf (verbose_time, _("%s left"), readable_timestr);
@@ -639,7 +639,7 @@ indicator_power_device_get_text (const IndicatorPowerDevice * device,
}
else
{
- /* if there's more than 12 hours remaining, we don't show it */
+ /* if there's more than 24 hours remaining, we don't show it */
}
g_free (readable_timestr);