File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,25 @@ def compute(values, out):
20
20
for i in range (len (res )):
21
21
curr = float (total - running_total ) / total
22
22
if curr <= goal :
23
- out .write (str (res [i ][0 ]) + " " + str (float (total - running_total ) / total ) + "\n " )
23
+ out .write (str (res [i ][0 ] + 1 if res [ i ][ 0 ] != 0 else 1 ) + " " + str (float (total - running_total ) / total ) + "\n " )
24
24
goal -= 0.01
25
25
running_total += res [i ][1 ]
26
26
# Consciously ignoring the last 1%
27
27
out .write ("\n " )
28
28
29
29
done = { }
30
+ threads = 0
30
31
31
- with open (file ) as file :
32
- lines = csv .reader (file )
32
+ with open (file ) as f :
33
+ lines = csv .reader (f )
34
+ for row in lines :
35
+ threads = max (threads , int (row [1 ]))
36
+
37
+ with open (file ) as f :
38
+ lines = csv .reader (f )
33
39
for row in lines :
34
40
# We have enough data as-is, only use a single testrun
35
- if row [0 ] not in done :
41
+ if int ( row [ 1 ]) == threads and row [0 ] not in done :
36
42
with open (row [0 ] + "_rank_error.txt" , "w" ) as out :
37
43
compute (row [5 ], out )
38
44
with open (row [0 ] + "_delay.txt" , "w" ) as out :
You can’t perform that action at this time.
0 commit comments