mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix frigate startup stats (#10887)
This commit is contained in:
parent
55018372d4
commit
c577361923
@ -18,6 +18,12 @@ export default function useStats(stats: FrigateStats | undefined) {
|
|||||||
return problems;
|
return problems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if frigate has just started
|
||||||
|
// don't look for issues
|
||||||
|
if (stats.service.uptime < 120) {
|
||||||
|
return problems;
|
||||||
|
}
|
||||||
|
|
||||||
// check detectors for high inference speeds
|
// check detectors for high inference speeds
|
||||||
Object.entries(stats["detectors"]).forEach(([key, det]) => {
|
Object.entries(stats["detectors"]).forEach(([key, det]) => {
|
||||||
if (det["inference_speed"] > InferenceThreshold.error) {
|
if (det["inference_speed"] > InferenceThreshold.error) {
|
||||||
|
@ -47,7 +47,7 @@ export type ServiceStats = {
|
|||||||
last_updated: number;
|
last_updated: number;
|
||||||
storage: { [path: string]: StorageStats };
|
storage: { [path: string]: StorageStats };
|
||||||
temperatures: { [apex: string]: number };
|
temperatures: { [apex: string]: number };
|
||||||
update: number;
|
uptime: number;
|
||||||
latest_version: string;
|
latest_version: string;
|
||||||
version: string;
|
version: string;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user