forked from Github/frigate
Fix frigate startup stats (#10887)
This commit is contained in:
@@ -18,6 +18,12 @@ export default function useStats(stats: FrigateStats | undefined) {
|
||||
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
|
||||
Object.entries(stats["detectors"]).forEach(([key, det]) => {
|
||||
if (det["inference_speed"] > InferenceThreshold.error) {
|
||||
|
||||
Reference in New Issue
Block a user