mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Change camera stats to be more structured (#8151)
* Change camera stats to be more structured * Update stats.py * Update stats.py * Update System.jsx Front end also breaks due to moved camera stats
This commit is contained in:
		
							parent
							
								
									12487b3b60
								
							
						
					
					
						commit
						facd557f8c
					
				| @ -248,6 +248,7 @@ def stats_snapshot( | ||||
| 
 | ||||
|     total_detection_fps = 0 | ||||
| 
 | ||||
|     stats["cameras"] = {} | ||||
|     for name, camera_stats in camera_metrics.items(): | ||||
|         total_detection_fps += camera_stats["detection_fps"].value | ||||
|         pid = camera_stats["process"].pid if camera_stats["process"] else None | ||||
| @ -259,7 +260,7 @@ def stats_snapshot( | ||||
|             if camera_stats["capture_process"] | ||||
|             else None | ||||
|         ) | ||||
|         stats[name] = { | ||||
|         stats["cameras"][name] = { | ||||
|             "camera_fps": round(camera_stats["camera_fps"].value, 2), | ||||
|             "process_fps": round(camera_stats["process_fps"].value, 2), | ||||
|             "skipped_fps": round(camera_stats["skipped_fps"].value, 2), | ||||
|  | ||||
| @ -32,7 +32,7 @@ export default function System() { | ||||
|     service = {}, | ||||
|     detection_fps: _, | ||||
|     processes, | ||||
|     ...cameras | ||||
|     cameras, | ||||
|   } = stats || initialStats || emptyObject; | ||||
| 
 | ||||
|   const detectorNames = Object.keys(detectors || emptyObject); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user