Skip to content

Commit

Permalink
use readable variable argument
Browse files Browse the repository at this point in the history
  • Loading branch information
clavay committed Jul 3, 2024
1 parent c3e531e commit e9415b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyscada/systemstat/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def read_data_all(self, variables_dict):
# item = variables_dict[item]
timestamp = time()
value = None
if not item.readable:
continue
if item.systemstatvariable.information == 0:
# cpu_percent
if hasattr(psutil, "cpu_percent"):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
platforms=["OS Independent"],
classifiers=CLASSIFIERS,
install_requires=[
"pyscada>=0.8.2",
"pyscada>=0.8.3",
"psutil>=2.1.1",
"paramiko",
],
Expand Down

0 comments on commit e9415b3

Please sign in to comment.