From 1fdbfbd91583af4ea45c362e7ca4dd6020314897 Mon Sep 17 00:00:00 2001 From: Przemyslaw Grondek Date: Tue, 28 May 2019 14:00:55 +0200 Subject: [PATCH] [i3blocks] Fix CPU --- i3blocks/cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3blocks/cpu b/i3blocks/cpu index 2e8d052..ec1c2fa 100755 --- a/i3blocks/cpu +++ b/i3blocks/cpu @@ -1,6 +1,6 @@ #!/usr/bin/env bash -utilisation=$(mpstat 1 1 --dec=0 | tail -n 1 | awk '{print $3}' )% +utilisation=$(mpstat 1 1 | tail -n 1 | awk '{print $3}' )% temperature_path=/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input load="↑ $(awk '{print $1}' /proc/loadavg)" temperature=$(($(cat $temperature_path)/1000))°C