Permalink
Browse files

tinyfix

  • Loading branch information...
Eyjafjallajokull committed Jan 25, 2013
1 parent 8966f83 commit 120888efd1ab09003a6c3a942e2684c971271f50
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/widgetmanager.py
View
@@ -26,6 +26,7 @@ class WidgetManager():
def __init__(self):
self.loadWidgets()
self.initWidgets()
+ self.interval = Config().get('core','updateInterval')+.5
def loadWidgets(self):
'''
@@ -68,7 +69,7 @@ def collectData(self):
'''
Collect data from all enabled widgets.
'''
- if self.lastCheck >= time.time()-Config().get('core','updateInterval')+.5 and self.cache != None:
+ if self.lastCheck >= time.time()-self.interval and self.cache != None:
return self.cache
newData = {}

0 comments on commit 120888e

Please sign in to comment.