Merge pull request #97 from ibrokemypie/cpu-rounding

[module/cpu] More useful rounding
This commit is contained in:
tobi-wan-kenobi 2017-06-02 16:07:37 +02:00 committed by GitHub
commit eafe0a4038

View file

@ -26,7 +26,7 @@ class Module(bumblebee.engine.Module):
cmd="gnome-system-monitor") cmd="gnome-system-monitor")
def utilization(self, widget): def utilization(self, widget):
return "{:06.02f}%".format(self._utilization) return "{:6.01f}%".format(self._utilization)
def update(self, widgets): def update(self, widgets):
self._utilization = psutil.cpu_percent(percpu=False) self._utilization = psutil.cpu_percent(percpu=False)