added a line at 106

This commit is contained in:
Damodar Rajbhandari 2019-08-24 01:11:12 +05:45 committed by GitHub
parent 0db89e4c41
commit ce54651330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,8 @@ class Module(bumblebee.engine.Module):
widget = self.create_widget(widgets, name, attributes={"theme.minwidth": "1000.00MB"}) widget = self.create_widget(widgets, name, attributes={"theme.minwidth": "1000.00MB"})
prev = self._prev.get(name, 0) prev = self._prev.get(name, 0)
speed = bumblebee.util.bytefmt((int(data[direction]) - int(prev))/timediff) speed = bumblebee.util.bytefmt((int(data[direction]) - int(prev))/timediff)
widget.full_text(speed) txtspeed ='{0}/s'.format(speed)
widget.full_text(txtspeed)
self._prev[name] = data[direction] self._prev[name] = data[direction]
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4