1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-18 06:11:49 -05: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:
Hemna 2024-04-12 15:08:39 -04:00
parent 40c028c844
commit 66e4850353

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,