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:
Hemna 2024-04-12 15:08:39 -04:00
parent 40c028c844
commit 66e4850353
1 changed files with 2 additions and 1 deletions

View File

@ -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,