Fixed the bug of ping.interval raising an exception with any value

This commit is contained in:
Moses Miller 2017-05-15 20:57:24 -07:00
parent 9b0c9a49e8
commit 84d4e87fbf
No known key found for this signature in database
GPG key ID: A46D4C3CF5B1EA57

View file

@ -72,6 +72,6 @@ class Module(bumblebee.engine.Module):
return return
thread = threading.Thread(target=get_rtt, args=(self,widgets[0],)) thread = threading.Thread(target=get_rtt, args=(self,widgets[0],))
thread.start() thread.start()
self._next_check = int(time.time()) + widgets[0].get("interval") self._next_check = int(time.time()) + int(widgets[0].get("interval"))
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4