From f1c2bede98ed824cc61763df4d1274a5403f60d0 Mon Sep 17 00:00:00 2001 From: vg Date: Sun, 3 Jun 2018 11:14:35 +0200 Subject: add threshold info printing --- scripts/critical_hibernate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/critical_hibernate.py diff --git a/scripts/critical_hibernate.py b/scripts/critical_hibernate.py old mode 100644 new mode 100755 index 7b19978..8db2edc --- 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())) -- cgit v1.2.3