update 2026-08-11 20:52:11

This commit is contained in:
action committed 2026-08-11 20:52:11 +08:00
1 parent 903417940c
commit e29cecc3c6
1954 files changed
+37 -1523030

No files matched your search

-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