X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Froot%2Fbin%2Fcpumon_lite;fp=master%2Froot%2Fbin%2Fcpumon_lite;h=0000000000000000000000000000000000000000;hb=db490f01bd6546802af2eec878abdbf762adeeaa;hp=e4509524d35fe195af0ecdf410e24349a274e48a;hpb=7fa369a4daec48f5985550db2cf589d4808eb7fe;p=debian6500.git diff --git a/master/root/bin/cpumon_lite b/master/root/bin/cpumon_lite deleted file mode 100755 index e450952..0000000 --- a/master/root/bin/cpumon_lite +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -INSTALL_DIR=$(dirname $0) - -$INSTALL_DIR/monitor_proc -s /proc/stat -while true; do - sleep 1 - $INSTALL_DIR/monitor_proc /proc/stat | \ - awk ' -BEGIN { printf "cpu:" } -/cpu[0-9]/ { - idle=$5 - sum=0; for (i=2;i<=NF;i++) sum+=$(i) - load=(sum-idle)*100/sum - tot+=load - if (!not_first) not_first=1; else printf " +" - printf " % 5.1f%%", load -} -END { printf " = % 6.1f%%\n", tot }' -done