mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 15:23:56 +08:00
🎉 Sync 2026-10-13 02:34:41
This commit is contained in:
1 parent
b537a62e59
commit
72c44a6325
38 files changed
+3510
-1734
No files matched your search
@@ -302,10 +302,11 @@ call)
|
||||
hw=$(uci -q get firewall.@defaults[0].flow_offloading_hw)
|
||||
poll=$(uci -q get trafficctl.main.poll_interval)
|
||||
window=$(uci -q get trafficctl.main.avg_window)
|
||||
printf '{"enabled":%s,"default_mode":"%s","offload_mode":"%s","sw":%s,"hw":%s,"poll_interval":%d,"avg_window":%d}' \
|
||||
printf '{"enabled":%s,"default_mode":"%s","offload_mode":"%s","nss":"%s","sw":%s,"hw":%s,"poll_interval":%d,"avg_window":%d}' \
|
||||
"$([ "$enabled" = "1" ] && echo true || echo false)" \
|
||||
"${mode:-limiter}" \
|
||||
"$offload" \
|
||||
"$(tctl_nss_status)" \
|
||||
"$([ "$sw" = "1" ] && echo true || echo false)" \
|
||||
"$([ "$hw" = "1" ] && echo true || echo false)" \
|
||||
"${poll:-2}" \
|
||||
|
||||
Reference in new issue
Block a user