display date as a separate entity
This commit is contained in:
		
							parent
							
								
									92b58b2f9b
								
							
						
					
					
						commit
						938d24b33e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -14,8 +14,10 @@ def status_print(status_msg):
 | 
				
			||||||
print('{"version":1}\n[')
 | 
					print('{"version":1}\n[')
 | 
				
			||||||
while True:
 | 
					while True:
 | 
				
			||||||
    values = list()
 | 
					    values = list()
 | 
				
			||||||
    current_time = time.strftime('%a %d %H:%M')
 | 
					    current_time = time.strftime('%H:%M')
 | 
				
			||||||
    values.append(current_time)
 | 
					    values.append(current_time)
 | 
				
			||||||
 | 
					    current_day = time.strftime('%a %d')
 | 
				
			||||||
 | 
					    values.append(current_day)
 | 
				
			||||||
    mem = psutil.virtual_memory()
 | 
					    mem = psutil.virtual_memory()
 | 
				
			||||||
    memory = 'RAM: {}% ({}G)'.format(round(100.0 - mem.percent, 2),
 | 
					    memory = 'RAM: {}% ({}G)'.format(round(100.0 - mem.percent, 2),
 | 
				
			||||||
                                     round(mem.available / 2**30, 2))
 | 
					                                     round(mem.available / 2**30, 2))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue