Last active
September 30, 2019 07:04
-
-
Save rodolpheh/b17db001c4fe37664bcd3226b67779e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cyclictest -l10000 -m -S -p90 -i200 -h400 -q | tee dump_cyclic | |
import sys | |
t1_missed = 0 | |
t2_missed = 0 | |
for line in sys.stdin: | |
sys.stdout.write(line) | |
frags = line.split(" ") | |
if frags[0] == "T_1": | |
t1_missed += 1 | |
elif frags[0] == "T_2": | |
t2_missed += 1 | |
print("T_1 missed: {}, T_2 missed: {}".format(t1_missed, t2_missed)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment