[~] Refactor
This commit is contained in:
		
							parent
							
								
									7c8c2c6b42
								
							
						
					
					
						commit
						5f579a045b
					
				| @ -496,7 +496,8 @@ def eternal_oom(argv): | |||||||
| 
 | 
 | ||||||
|     def oom_status(): |     def oom_status(): | ||||||
|         print( |         print( | ||||||
|             '\r%6.2f / %.2f %%, %6.2f / %.2f GiB' % ( |             '\r%s %6.2f / %.2f %%, %6.2f / %.2f GiB' % ( | ||||||
|  |                 datetime.datetime.now().isoformat(), | ||||||
|                 oom_mean_cpu() / os.cpu_count() * 100, |                 oom_mean_cpu() / os.cpu_count() * 100, | ||||||
|                 options.cpu_limit / os.cpu_count() * 100, |                 options.cpu_limit / os.cpu_count() * 100, | ||||||
|                 memory_stats()['mem_used'] / 1024 / 1024, |                 memory_stats()['mem_used'] / 1024 / 1024, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user