diff --git a/scripts/jantoran.py b/scripts/jantoran.py index 529d3ad..eeb4f0c 100755 --- a/scripts/jantoran.py +++ b/scripts/jantoran.py @@ -47,9 +47,14 @@ def analyze_failure(s): v = sorted(v) total = len(v) rate = round(1000 / k) + score = 0 + f.write(f"{rate},0,0\n") for idx,e in enumerate(v,start=1): - if e == 90: break - f.write(f"{rate},{e},{idx/total}\n") + if e >= 90: + f.write(f"{rate},90,{score}\n") + break + score = idx/total + f.write(f"{rate},{e},{score}\n") def analyze(s): print("analyzing...")