summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/battery-level.py4
-rw-r--r--modules/keyboard-layout.py4
2 files changed, 4 insertions, 4 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)
diff --git a/modules/keyboard-layout.py b/modules/keyboard-layout.py
index 6fd4019..97ef716 100644
--- a/modules/keyboard-layout.py
+++ b/modules/keyboard-layout.py
@@ -13,7 +13,7 @@ Requires:
@license Eclipse Public License
"""
-CACHE_TIME = 10 # refresh time to update indicator
+CACHE_TIMEOUT = 10 # refresh time to update indicator
# colors of layouts, check your command's output to match keys
LANG_COLORS = {
@@ -57,7 +57,7 @@ class Py3status:
response = {
'full_text': '',
'name': 'keyboard-layout',
- 'cached_until': time() + CACHE_TIME
+ 'cached_until': time() + CACHE_TIMEOUT
}
lang = self.command().strip()