mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // 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) {
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,7 @@ export type ServiceStats = {
 | 
			
		||||
  last_updated: number;
 | 
			
		||||
  storage: { [path: string]: StorageStats };
 | 
			
		||||
  temperatures: { [apex: string]: number };
 | 
			
		||||
  update: number;
 | 
			
		||||
  uptime: number;
 | 
			
		||||
  latest_version: string;
 | 
			
		||||
  version: string;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user