mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	
							parent
							
								
									4f855f82ea
								
							
						
					
					
						commit
						2b7b5e3f08
					
				@ -473,7 +473,7 @@ class RecordingMaintainer(threading.Thread):
 | 
				
			|||||||
                    # get the segment size of the cache file
 | 
					                    # get the segment size of the cache file
 | 
				
			||||||
                    # file without faststart is same size
 | 
					                    # file without faststart is same size
 | 
				
			||||||
                    segment_size = round(
 | 
					                    segment_size = round(
 | 
				
			||||||
                        float(os.path.getsize(cache_path)) / pow(2, 20), 1
 | 
					                        float(os.path.getsize(cache_path)) / pow(2, 20), 2
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
                except OSError:
 | 
					                except OSError:
 | 
				
			||||||
                    segment_size = 0
 | 
					                    segment_size = 0
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user