Merge pull request #565 from somospocos/align-cpuload

[modules/cpu2] align cpu load
This commit is contained in:
tobi-wan-kenobi 2020-02-29 13:39:55 +01:00 committed by GitHub
commit 1865b5488b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ class Module(bumblebee.engine.Module):
return "{:.2f}GHz".format(self._maxfreq) return "{:.2f}GHz".format(self._maxfreq)
def cpuload(self, _): def cpuload(self, _):
return "{}%".format(self._cpuload) return "{:>3}%".format(self._cpuload)
def add_color(self, bar): def add_color(self, bar):
"""add color as pango markup to a bar""" """add color as pango markup to a bar"""