Skip to content

Commit

Permalink
fix CPU monitor dependency on locale
Browse files Browse the repository at this point in the history
  • Loading branch information
roscisz committed Mar 5, 2020
1 parent fbd0fdf commit a88c9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorhive/core/monitors/CPUMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a88c9ab

Please sign in to comment.