mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
add ffmpeg bandwidth stats
This commit is contained in:
parent
c15a2bd233
commit
263b9944d7
@ -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:
|
||||||
|
|||||||
@ -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: _,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user