home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b2a0f9
)
Show 1min load avg
author
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 3 Jul 2018 02:00:46 +0000
(22:00 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Tue, 3 Jul 2018 02:02:35 +0000
(22:02 -0400)
bin/khatus_show
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_show
b/bin/khatus_show
index
4545a1f
..
03ad6a9
100755
(executable)
--- 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\
\
\
This page took
0.02331 seconds
and
4
git commands to generate.