summaryrefslogtreecommitdiffstats
path: root/modules/battery-level.py
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2014-05-27 12:31:44 +0200
committerUltrabug <ultrabug@gentoo.org>2014-05-27 12:31:44 +0200
commit277b0008c2d779a98605737bc91ca75e6b364728 (patch)
treeb84f4ff7258759fd958b19a12e94f310f6605c0e /modules/battery-level.py
parent9d1b932062fc4d9a236098c33ee8d2e447df3d41 (diff)
normalize the CACHE_TIMEOUT variable name
Diffstat (limited to 'modules/battery-level.py')
-rw-r--r--modules/battery-level.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/battery-level.py b/modules/battery-level.py
index 4d94311..6c30556 100644
--- a/modules/battery-level.py
+++ b/modules/battery-level.py
@@ -17,7 +17,7 @@ Requires:
@license Eclipse Public License
"""
-CACHE_TIME = 30 # time to update battery
+CACHE_TIMEOUT = 30 # time to update battery
HIDE_WHEN_FULL = False # hide any information when battery is fully charged
MODE = "bar" # for primitive-one-char bar, or "text" for text percentage ouput
@@ -63,6 +63,6 @@ class Py3status:
else:
response['full_text'] = character
- response['cached_until'] = time() + CACHE_TIME
+ response['cached_until'] = time() + CACHE_TIMEOUT
return (0, response)