update 2026-08-01 01:23:59

This commit is contained in:
action
2026-08-01 01:23:59 +08:00
parent eda83ce809
commit 5a97078bb7
1956 changed files with 0 additions and 1523141 deletions
-14
View File
@@ -1,14 +0,0 @@
#!/bin/sh
NSS_PATH="/sys/kernel/debug/qca-nss-drv/stats"
cpu_usage="$(busybox top -n1 | awk '/^CPU/ {printf("%d%", 100 - $8)}')"
[ ! -d "$NSS_PATH" ] || \
npu_usage="$(grep '%' "$NSS_PATH"/cpu_load_ubi | awk -F ' ' '{print $2}')"
if [ -d "$NSS_PATH" ]; then
echo -n "CPU: ${cpu_usage}, NPU: ${npu_usage}"
else
echo -n "CPU: ${cpu_usage}"
fi