update 2026-08-12 17:06:12

This commit is contained in:
action committed 2026-08-12 17:06:12 +08:00
1 parent f7ac09ba87
commit 0d04308d7f
1968 files changed
+59 -1523151

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
#!/bin/sh
if [ $(busybox ps -w | grep getcpu | grep -v grep | wc -l) -le 2 ]; then
AT=$(cat /proc/stat | grep "^cpu " | awk '{print $2+$3+$4+$5+$6+$7+$8 " " $2+$3+$4+$7+$8}')
sleep 1
BT=$(cat /proc/stat | grep "^cpu " | awk '{print $2+$3+$4+$5+$6+$7+$8 " " $2+$3+$4+$7+$8}')
printf "%.01f%%" $(echo $AT $BT | awk '{print (($4-$2)/($3-$1))*100}') >/tmp/cpuusage
fi