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

This commit is contained in:
Adel Gadllah 2010-11-17 22:58:00 +01:00
parent deb7e7317e
commit fa44289dd0

View File

@ -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);
},