mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-04 15:14:42 -04:00
Fixed issue with APRSDThreadList stats()
the stats method was setting the key to the classname and not the thread name, giving an inacurate list of actual running threads.
This commit is contained in:
@@ -77,8 +77,9 @@ class APRSDThreadList:
|
||||
age = th.loop_age()
|
||||
if serializable:
|
||||
age = str(age)
|
||||
stats[th.__class__.__name__] = {
|
||||
stats[th.name] = {
|
||||
"name": th.name,
|
||||
"class": th.__class__.__name__,
|
||||
"alive": th.is_alive(),
|
||||
"age": th.loop_age(),
|
||||
"loop_count": th.loop_count,
|
||||
|
||||
Reference in New Issue
Block a user