From a88c9ab82437931ea657bd560b66d079836d0155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ro=C5=9Bciszewski?= Date: Thu, 5 Mar 2020 14:45:33 +0100 Subject: [PATCH] fix CPU monitor dependency on locale --- tensorhive/core/monitors/CPUMonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorhive/core/monitors/CPUMonitor.py b/tensorhive/core/monitors/CPUMonitor.py index d63914c5..4a742a89 100644 --- a/tensorhive/core/monitors/CPUMonitor.py +++ b/tensorhive/core/monitors/CPUMonitor.py @@ -9,7 +9,7 @@ class CPUMonitor(Monitor): @override def update(self, group_connection, infrastructure_manager): cmd = 'awk \'{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1); }\' \ - <(grep \'cpu \' /proc/stat) <(sleep 1;grep \'cpu \' /proc/stat);free -m | grep Mem' + <(grep \'cpu \' /proc/stat) <(sleep 1;grep \'cpu \' /proc/stat);free -m | awk \'NR==2\'' output = group_connection.run_command(cmd, stop_on_errors=False) group_connection.join(output)