diff options
Diffstat (limited to 'py3status/modules')
| -rw-r--r-- | py3status/modules/bitcoin-price-checker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py3status/modules/bitcoin-price-checker.py b/py3status/modules/bitcoin-price-checker.py index 3549866..6562075 100644 --- a/py3status/modules/bitcoin-price-checker.py +++ b/py3status/modules/bitcoin-price-checker.py @@ -18,7 +18,7 @@ class Py3status: # btc-e, api,bitfinex, bitstamp, bitpay websites = 'btc-e, bitstamp' value = 'last' - cache_timeout = 5 + cache_timeout = 120 def __init__(self): self._hoster = {'https://btc-e.com/api/2/btc_usd/ticker': self._get_btce, @@ -74,6 +74,7 @@ class Py3status: 'cached_until': time() + self.cache_timeout} rates = [] cnt = 0 + global lastPrices for url, f in self._hoster.items(): rgx = re.search('.*//(.*)\..*', url).group(1) if rgx not in self.websites: |
