Skip to content

Instantly share code, notes, and snippets.

@rodolpheh
Last active September 30, 2019 07:04
Show Gist options
  • Save rodolpheh/b17db001c4fe37664bcd3226b67779e2 to your computer and use it in GitHub Desktop.
Save rodolpheh/b17db001c4fe37664bcd3226b67779e2 to your computer and use it in GitHub Desktop.
# 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