mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 22:55:26 +03:00
fix timing
This commit is contained in:
parent
615cf1ecb8
commit
f59874d698
@ -32,11 +32,11 @@ export function useCameraPreviews(
|
|||||||
return allPreviews;
|
return allPreviews;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we need to add a buffer of 5 minutes to the end preview times
|
// we need to add a buffer of 5 seconds to the end preview times
|
||||||
// this ensures that if preview generation is running slowly
|
// this ensures that if preview generation is running slowly
|
||||||
// and the previews are generated 1-5 minutes late
|
// and the previews are generated 1-5 seconds late
|
||||||
// it is not falsely thrown out.
|
// it is not falsely thrown out.
|
||||||
const PREVIEW_END_BUFFER = 300;
|
const PREVIEW_END_BUFFER = 5; // seconds
|
||||||
|
|
||||||
export function usePreviewForTimeRange(
|
export function usePreviewForTimeRange(
|
||||||
allPreviews: Preview[],
|
allPreviews: Preview[],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user