Only log remaining battery time if not connected to the grid.
This commit is contained in:
		
							parent
							
								
									dda48396b3
								
							
						
					
					
						commit
						ceba0e8a2f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -43,7 +43,7 @@ namespace SafeExamBrowser.SystemComponents.PowerSupply | |||
| 
 | ||||
| 			if (lastStatusLog < DateTime.Now.AddMinutes(-1)) | ||||
| 			{ | ||||
| 				logger.Debug($"Power grid is {(status.IsOnline ? "" : "not ")}connected, battery charge at {charge * 100}% ({status.BatteryTimeRemaining})."); | ||||
| 				logger.Debug($"Power grid is {(status.IsOnline ? "" : "not ")}connected, battery charge at {charge * 100}%{(status.IsOnline ? "" : $" ({status.BatteryTimeRemaining})")}."); | ||||
| 				lastStatusLog = DateTime.Now; | ||||
| 			} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 dbuechel
						dbuechel