From fa44289dd0a57612895a39fd801823b72af461a5 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 17 Nov 2010 22:58:00 +0100 Subject: [PATCH] [PowerIcon] Fix percent label to be in sync with the description --- 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 c09fd2fb8..6f8ba321d 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); },