add ffmpeg bandwidth stats

This commit is contained in:
Korneliusz Jarzębski 2023-05-15 03:22:45 +02:00
parent c15a2bd233
commit 263b9944d7
2 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,7 @@ async def set_cpu_stats(all_stats: dict[str, Any]) -> None:
all_stats["cpu_usages"] = cpu_stats all_stats["cpu_usages"] = cpu_stats
async def set_bandwidth_stats(all_stats: dict[str, Any]) -> None: async def set_bandwidth_stats(all_stats: dict[str, Any]) -> None:
"""Set cpu usage from top.""" """Set bandwidth from nethogs."""
bandwidth_stats = get_bandwidth_stats() bandwidth_stats = get_bandwidth_stats()
if bandwidth_stats: if bandwidth_stats:

View File

@ -27,6 +27,7 @@ export default function System() {
const { const {
cpu_usages, cpu_usages,
gpu_usages, gpu_usages,
bandwidth_usages,
detectors, detectors,
service = {}, service = {},
detection_fps: _, detection_fps: _,