[gnome-shell] power: indicate 1 hour remaining correctly



commit e757b069875ba3baf6201c6da19fbcccb26b72d9
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Fri Nov 9 05:09:53 2012 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index a5f2625..d804072 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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]