@@ -61,16 +61,9 @@ def ascii_progress_bar(percentage, bar_length=50):
61
61
62
62
clear_console ()
63
63
print (ascii_progress_bar (progress (lines , tj )))
64
- print (
65
- "--------------------------------------------------------------"
66
- )
67
- print (
68
- "Host Throughput (jobs/s) Total Successful Failed"
69
- )
70
- print (
71
- "--------------------------------------------------------------"
72
- )
73
-
64
+ print ("--------------------------------------------------------------" )
65
+ print ("Host Throughput (jobs/s) Total Successful Failed" )
66
+ print ("--------------------------------------------------------------" )
74
67
75
68
for line in new_lines :
76
69
parsed_line = parse (line .replace ("\x00 " , "" ))
@@ -97,12 +90,10 @@ def ascii_progress_bar(percentage, bar_length=50):
97
90
failed_overall = 0
98
91
99
92
for host , stats in hosts .items ():
100
-
101
93
throughput = len (stats ["jobs" ]) / (
102
94
time .mktime (time .gmtime ())
103
95
- time .mktime (stats ["jobs" ][0 ]["starttime" ])
104
96
)
105
-
106
97
throughput_overall += throughput
107
98
totel_overall += stats ["total" ]
108
99
succsessful_overall += stats ["successful" ]
@@ -112,9 +103,7 @@ def ascii_progress_bar(percentage, bar_length=50):
112
103
f"{ host :12} { throughput :.2f} { stats ['total' ]:5} { stats ['successful' ]:5} { stats ['failed' ]:5} "
113
104
)
114
105
115
- print (
116
- "--------------------------------------------------------------"
117
- )
106
+ print ("--------------------------------------------------------------" )
118
107
print (
119
108
f"{ 'overall' :12} { throughput_overall :.2f} { totel_overall :5} { succsessful_overall :5} { failed_overall :5} "
120
109
)
0 commit comments