Merge pull request #83 from Majora320/master

Fixed the bug of `ping.interval` raising an exception with any value
This commit is contained in:
tobi-wan-kenobi 2017-05-16 08:18:44 +02:00 committed by GitHub
commit 15db0c7756

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