Revert "tici: give loggerd rt priority (#21503)"

This reverts commit 0a50cf851e79342cf3db01033bc91516c504cbea.

old-commit-hash: 54a4eeb0fccd92c3b2f872175cfedf136a1cfc71
This commit is contained in:
Adeeb Shihadeh
2021-08-22 16:57:53 -07:00
parent 3b2a83e377
commit 277bd43b15
5 changed files with 17 additions and 22 deletions
+4 -3
View File
@@ -12,12 +12,13 @@ ts = defaultdict(lambda: deque(maxlen=100))
if __name__ == "__main__":
while True:
time.sleep(1)
print()
for s, sock in socks.items():
msgs = messaging.drain_sock(sock)
for m in msgs:
ts[s].append(m.logMonoTime / 1e6)
d = np.diff(ts[s])
print(f"{s:17} {np.mean(d):.2f} {np.std(d):.2f} {np.max(d):.2f} {np.min(d):.2f}")
if len(ts[s]) == ts[s].maxlen:
d = np.diff(ts[s])
print(f"{s:17} {np.mean(d):.2f} {np.std(d):.2f} {np.max(d):.2f} {np.min(d):.2f}")
time.sleep(1)