aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vg@devys.org>2018-06-03 11:14:35 +0200
committervg <vg@devys.org>2018-06-03 11:14:35 +0200
commitf1c2bede98ed824cc61763df4d1274a5403f60d0 (patch)
treec458aed6eecda5d796863c4e2a7a0e19ab66ffbf
parentfce156be903c57e2a370925fbc5995815d88e997 (diff)
downloadscripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.tar.gz
scripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.tar.bz2
scripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.zip
add threshold info printing
-rwxr-xr-x[-rw-r--r--]scripts/critical_hibernate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/critical_hibernate.py b/scripts/critical_hibernate.py
index 7b19978..8db2edc 100644..100755
--- a/scripts/critical_hibernate.py
+++ b/scripts/critical_hibernate.py
@@ -37,7 +37,7 @@ try:
batfd = None
try:
batfd = os.open(sysfs_path, os.O_RDONLY)
- print('monitoring %s' % sysfs_path)
+ print('monitoring %s (threshold %d%%)' % (sysfs_path, threshold))
while True:
uevent_dict = dict((e.split(b'=')
for e in os.pread(batfd, 1024, 0).split()))