summaryrefslogtreecommitdiffstats
path: root/pyhwmon
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-06-15 07:24:52 -0500
committerGitHub <noreply@github.com>2016-06-15 07:24:52 -0500
commit531def23e2d8343fa9528e61f91bef230e1a8f6c (patch)
treed6d0cf390bba5aa07c7aad680c06c75ec115c392 /pyhwmon
parent5213a991a5a3bd107636f1b2cc3bbca560843462 (diff)
parent8224ff87c914861d28ed0dc6a251ba213a9ee607 (diff)
downloadtalos-skeleton-531def23e2d8343fa9528e61f91bef230e1a8f6c.tar.gz
talos-skeleton-531def23e2d8343fa9528e61f91bef230e1a8f6c.zip
Merge pull request #102 from bradbishop/broken-cache
Fix broken attempt at hwmon caching
Diffstat (limited to 'pyhwmon')
-rw-r--r--pyhwmon/hwmon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyhwmon/hwmon.py b/pyhwmon/hwmon.py
index a91b761..d662213 100644
--- a/pyhwmon/hwmon.py
+++ b/pyhwmon/hwmon.py
@@ -55,7 +55,7 @@ class Hwmons():
with open(filename, 'w') as f:
f.write(str(value)+'\n')
- def should_update(attribute, value):
+ def should_update(self, attribute, value):
if attribute not in self.cache:
self.cache[attribute] = value
return True
OpenPOWER on IntegriCloud