diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c index dc8db3a..8f040b2 100644 --- a/src/device.c +++ b/src/device.c @@ -520,11 +520,11 @@ indicator_power_device_get_time_details (const IndicatorPowerDevice * device, const gdouble percentage = indicator_power_device_get_percentage (device); const gchar * device_name = device_kind_to_localised_string (indicator_power_device_get_kind(device)); - gchar *short_timestring = NULL; - gchar *detailed_timestring = NULL; - if (time > 0) { + gchar *short_timestring = NULL; + gchar *detailed_timestring = NULL; + get_timestring (time, &short_timestring, &detailed_timestring); |