Rename cpumon_lite to cpumon_light
authorThomas Pérennou (Viveris Technologie) <thomas.perennou@external.thalesgroup.com>
Wed, 18 Feb 2015 16:22:54 +0000 (17:22 +0100)
committerThomas Pérennou (Viveris Technologie) <thomas.perennou@external.thalesgroup.com>
Wed, 18 Feb 2015 16:22:54 +0000 (17:22 +0100)
master/root/bin/cpumon_light [new file with mode: 0755]
master/root/bin/cpumon_lite [deleted file]

diff --git a/master/root/bin/cpumon_light b/master/root/bin/cpumon_light
new file mode 100755 (executable)
index 0000000..e450952
--- /dev/null
@@ -0,0 +1,20 @@
+#!/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
diff --git a/master/root/bin/cpumon_lite b/master/root/bin/cpumon_lite
deleted file mode 100755 (executable)
index e450952..0000000
+++ /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