File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ def parse(input_line: str) -> dict:
38
38
return parsed
39
39
40
40
41
- def progress (lines , total_jops ):
42
- return (len (lines ) / tj ) * 100 if tj else 0
41
+ def progress (lines , total_jobs ):
42
+ return (len (lines ) / total_jobs ) * 100 if total_jobs else 0
43
43
44
44
45
45
def ascii_progress_bar (percentage , bar_length = 50 ):
@@ -71,6 +71,7 @@ def ascii_progress_bar(percentage, bar_length=50):
71
71
"--------------------------------------------------------------"
72
72
)
73
73
74
+
74
75
for line in new_lines :
75
76
parsed_line = parse (line .replace ("\x00 " , "" ))
76
77
host = parsed_line ["host" ]
@@ -96,10 +97,12 @@ def ascii_progress_bar(percentage, bar_length=50):
96
97
failed_overall = 0
97
98
98
99
for host , stats in hosts .items ():
100
+
99
101
throughput = len (stats ["jobs" ]) / (
100
102
time .mktime (time .gmtime ())
101
103
- time .mktime (stats ["jobs" ][0 ]["starttime" ])
102
104
)
105
+
103
106
throughput_overall += throughput
104
107
totel_overall += stats ["total" ]
105
108
succsessful_overall += stats ["successful" ]
You can’t perform that action at this time.
0 commit comments