Return 0 as an int rather than a string.

This was causing an ocassional crash in bumblebee/engine.py threshold_state
when checkupdates fails, perhaps due to wifi not being up yet.

For me this showed up regularly on login.
This commit is contained in:
Travis Cole 2018-10-20 10:03:55 -07:00
parent 4a63bfc45b
commit 0d8585a2ab

View file

@ -27,7 +27,7 @@ class Module(bumblebee.engine.Module):
packages.pop()
return len(packages)
return '0'
return 0
def utilization(self, widget):
return 'Update Arch: {}'.format(self.packages)