[PowerIcon] Fix percent label to be in sync with the description
This commit is contained in:
parent
deb7e7317e
commit
fa44289dd0
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user