fix: Properly count timers for DumpInfo (#986)

This commit is contained in:
jkachhad 2022-04-03 00:00:01 -07:00 committed by GitHub
parent 4d1ee21568
commit b2b4c809f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,12 +221,17 @@ namespace Server
continue;
}
var name = t.ToString();
hash.TryGetValue(name, out var count);
hash[name] = count + 1;
total++;
while (t != null)
{
var name = t.ToString();
hash.TryGetValue(name, out var count);
hash[name] = count + 1;
total++;
t = t?._nextTimer;
}
}
}