update 2026-07-08 18:11:50

This commit is contained in:
action committed 2026-07-08 18:11:50 +08:00
1 parent f21db3bfeb
commit 3cce89d35f
1959 files changed
+1523154 -15

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#!/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