[gnome-shell] [PowerIcon] Fix percent label to be in sync with the description



commit fa44289dd0a57612895a39fd801823b72af461a5
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Wed Nov 17 22:58:00 2010 +0100

    [PowerIcon] Fix percent label to be in sync with the description

 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 c09fd2f..6f8ba32 100644
--- a/js/ui/status/power.js
+++ b/js/ui/status/power.js
@@ -207,7 +207,7 @@ DeviceItem.prototype = {
         this.addActor(this._box);
 
         let percentBin = new St.Bin({ x_align: St.Align.END });
-        let percentLabel = new St.Label({ text: '%d%%'.format(percentage) });
+        let percentLabel = new St.Label({ text: '%d%%'.format(Math.round(percentage)) });
         percentBin.child = percentLabel;
         this.addActor(percentBin);
     },



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