From: Siraaj Khandkar Date: Tue, 3 Jul 2018 02:00:46 +0000 (-0400) Subject: Show 1min load avg X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=14dc912f4d2d90d97607854329cd78065e74be73;p=khatus.git Show 1min load avg --- diff --git a/bin/khatus_show b/bin/khatus_show index 4545a1f..03ad6a9 100755 --- a/bin/khatus_show +++ b/bin/khatus_show @@ -7,7 +7,7 @@ STATUS_DIR=$HOME/var/run/status STATUS_FILE__WIFI=$STATUS_DIR/wifi STATUS_FILE__ENERGY_NOTIFIED_BELLOW_HALF=$STATUS_DIR/notified_energy_bellow_half -#load=$(cat /proc/loadavg | awk '{printf "%4.2f %4.2f %4.2f", $1, $2, $3}') +load=$(awk '{printf("%4.2f", $1)}' /proc/loadavg) fan=$(awk '/^speed:/ {printf "%4d", $2}' /proc/acpi/ibm/fan) @@ -353,6 +353,9 @@ echo \ C=[$cpu ${temp}°C ${fan}rpm]\ \ \ + L=$load\ + \ + \ D$disk\ \ \