|
|
@ -141,7 +141,7 @@ func (c *metricsContainer) Execute(v any) {
|
|
|
|
report.Median = float32(medianTask.Duration) / float32(time.Millisecond)
|
|
|
|
report.Median = float32(medianTask.Duration) / float32(time.Millisecond)
|
|
|
|
tenPercent := fiftyPercent / 5
|
|
|
|
tenPercent := fiftyPercent / 5
|
|
|
|
if tenPercent > 0 {
|
|
|
|
if tenPercent > 0 {
|
|
|
|
top10pTasks := topK(tasks, tenPercent)
|
|
|
|
top10pTasks := topK(top50pTasks, tenPercent)
|
|
|
|
task90th := top10pTasks[0]
|
|
|
|
task90th := top10pTasks[0]
|
|
|
|
report.Top90th = float32(task90th.Duration) / float32(time.Millisecond)
|
|
|
|
report.Top90th = float32(task90th.Duration) / float32(time.Millisecond)
|
|
|
|
onePercent := tenPercent / 10
|
|
|
|
onePercent := tenPercent / 10
|
|
|
@ -163,7 +163,7 @@ func (c *metricsContainer) Execute(v any) {
|
|
|
|
report.Top99p9th = mostDuration
|
|
|
|
report.Top99p9th = mostDuration
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
mostDuration := getTopDuration(tasks)
|
|
|
|
mostDuration := getTopDuration(top50pTasks)
|
|
|
|
report.Top90th = mostDuration
|
|
|
|
report.Top90th = mostDuration
|
|
|
|
report.Top99th = mostDuration
|
|
|
|
report.Top99th = mostDuration
|
|
|
|
report.Top99p9th = mostDuration
|
|
|
|
report.Top99p9th = mostDuration
|
|
|
|