mirror of
				https://github.com/craigerl/aprsd.git
				synced 2025-10-29 20:10:25 -04:00 
			
		
		
		
	small refactor of stats usage in version plugin
This commit is contained in:
		
							parent
							
								
									9c77ca26be
								
							
						
					
					
						commit
						90f212e6dc
					
				| @ -23,9 +23,7 @@ class VersionPlugin(plugin.APRSDRegexCommandPluginBase): | |||||||
|         # fromcall = packet.get("from") |         # fromcall = packet.get("from") | ||||||
|         # message = packet.get("message_text", None) |         # message = packet.get("message_text", None) | ||||||
|         # ack = packet.get("msgNo", "0") |         # ack = packet.get("msgNo", "0") | ||||||
|         stats_obj = stats.APRSDStats() |         s = stats.APRSDStats().stats() | ||||||
|         s = stats_obj.stats() |  | ||||||
|         print(s) |  | ||||||
|         return "APRSD ver:{} uptime:{}".format( |         return "APRSD ver:{} uptime:{}".format( | ||||||
|             aprsd.__version__, |             aprsd.__version__, | ||||||
|             s["aprsd"]["uptime"], |             s["aprsd"]["uptime"], | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user