From e757b069875ba3baf6201c6da19fbcccb26b72d9 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Fri, 9 Nov 2012 05:09:53 +0100 Subject: [PATCH] power: indicate 1 hour remaining correctly Before 60 minutes remaining were displayed as "0 minutes" now it is "1 hour". https://bugzilla.gnome.org/show_bug.cgi?id=687958 --- js/ui/status/power.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/power.js b/js/ui/status/power.js index a5f2625f5..d80407207 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -96,7 +96,7 @@ const Indicator = new Lang.Class({ let minutes = time % 60; let hours = Math.floor(time / 60); let timestring; - if (time > 60) { + if (time >= 60) { if (minutes == 0) { timestring = ngettext("%d hour remaining", "%d hours remaining", hours).format(hours); } else {