Fixed critical bug in get_top_applications() and get_top_protocols() RPC methods where data was extracted with jq but never added to the JSON output. The functions were using jshn arrays but only echoing data instead of adding it to the array. Changes: - Rewrote get_top_applications() to output complete JSON via jq - Rewrote get_top_protocols() to output complete JSON via jq - Removed broken jshn array manipulation - Added proper fallback to empty arrays when no data available This fixes the "metrics vides" (empty metrics) issue in LuCI dashboard. The dashboard will now properly display: - Top applications with traffic stats - Top protocols with bandwidth usage - Flow counts and bytes transferred 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| etc | ||
| usr | ||