mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 15:49:00 +03:00
Motion review playback optimizations (#10659)
* handle motion timestamps with ranges * check for overlaps when checking segment for events * rename motion color vars to significant_motion for consistency * safelist significant_motion * rename vars for clarity and use timeout instead of interval
This commit is contained in:
@@ -33,7 +33,7 @@ export const useMotionSegmentUtils = (
|
||||
|
||||
const interpolateMotionAudioData = useCallback(
|
||||
(value: number, newMax: number): number => {
|
||||
return Math.ceil((Math.abs(value) / 100.0) * newMax) || 1;
|
||||
return Math.ceil((Math.abs(value) / 100.0) * newMax) || 0;
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user