From 84d4e87fbf42ee356e3d514f26164a0271728e74 Mon Sep 17 00:00:00 2001 From: Moses Miller Date: Mon, 15 May 2017 20:57:24 -0700 Subject: [PATCH] Fixed the bug of `ping.interval` raising an exception with any value --- bumblebee/modules/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/ping.py b/bumblebee/modules/ping.py index dd6f9cc..469871a 100644 --- a/bumblebee/modules/ping.py +++ b/bumblebee/modules/ping.py @@ -72,6 +72,6 @@ class Module(bumblebee.engine.Module): return thread = threading.Thread(target=get_rtt, args=(self,widgets[0],)) 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