fix: report stats for httprunner master

This commit is contained in:
xucong053
2022-07-25 21:23:08 +08:00
committed by 徐聪
parent d67764e49c
commit 2ca94381ef
3 changed files with 57 additions and 23 deletions
+1 -13
View File
@@ -116,19 +116,7 @@ func (o *ConsoleOutput) OnEvent(data map[string]interface{}) {
return
}
var state string
switch output.State {
case StateInit:
state = "initializing"
case StateSpawning:
state = "spawning"
case StateRunning:
state = "running"
case StateQuitting:
state = "quitting"
case StateStopped:
state = "stopped"
}
state := getStateName(output.State)
currentTime := time.Now()
println(fmt.Sprintf("Current time: %s, Users: %d, State: %s, Total RPS: %.1f, Total Average Response Time: %.1fms, Total Fail Ratio: %.1f%%",