mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-02 09:02:15 +03:00
Fix stream stats display (#19874)
* Fix stats calculations and labels * fix linter from complaining * fix mse calc * label
This commit is contained in:
@@ -164,7 +164,7 @@ export default function JSMpegPlayer({
|
||||
statsIntervalRef.current = setInterval(() => {
|
||||
const currentTimestamp = Date.now();
|
||||
const timeDiff = (currentTimestamp - lastTimestampRef.current) / 1000; // in seconds
|
||||
const bitrate = (bytesReceivedRef.current * 8) / timeDiff / 1000; // in kbps
|
||||
const bitrate = bytesReceivedRef.current / timeDiff / 1000; // in kBps
|
||||
|
||||
setStats?.({
|
||||
streamType: "jsmpeg",
|
||||
|
||||
Reference in New Issue
Block a user