diff options
author | vg <vg@devys.org> | 2018-06-03 11:14:35 +0200 |
---|---|---|
committer | vg <vg@devys.org> | 2018-06-03 11:14:35 +0200 |
commit | f1c2bede98ed824cc61763df4d1274a5403f60d0 (patch) | |
tree | c458aed6eecda5d796863c4e2a7a0e19ab66ffbf | |
parent | fce156be903c57e2a370925fbc5995815d88e997 (diff) | |
download | scripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.tar.gz scripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.tar.bz2 scripts-f1c2bede98ed824cc61763df4d1274a5403f60d0.zip |
add threshold info printing
-rwxr-xr-x[-rw-r--r--] | scripts/critical_hibernate.py | 2 |
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())) |