Prevent potential value overflow
This commit is contained in:
		@@ -45,7 +45,7 @@ impl ConsumptionHistoryFile {
 | 
			
		||||
    fn new_memory(day: u64) -> Self {
 | 
			
		||||
        Self {
 | 
			
		||||
            day,
 | 
			
		||||
            buff: vec![0; 3600 * 24 / TIME_INTERVAL],
 | 
			
		||||
            buff: vec![0; (3600 * 24 / TIME_INTERVAL) + 1],
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user