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:
parent
4a63bfc45b
commit
0d8585a2ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue