Skip to content

Commit

Permalink
Merge pull request #1030 from k1LoW/fix-latency
Browse files Browse the repository at this point in the history
Fix latency unit
  • Loading branch information
k1LoW authored Sep 3, 2024
2 parents c73ea98 + 43b5958 commit fc8d555
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions loadt.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ func (r *loadtResult) Report(w io.Writer) error {
"Failed": r.failed,
"ErrorRate": humanize.CommafWithDigits(r.errorRate, 1),
"RPS": humanize.CommafWithDigits(r.rps, 1),
"MaxLatency": humanize.CommafWithDigits(r.max, 1),
"MinLatency": humanize.CommafWithDigits(r.min, 1),
"AvgLatency": humanize.CommafWithDigits(r.avg, 1),
"MedLatency": humanize.CommafWithDigits(r.p50, 1),
"Latency90p": humanize.CommafWithDigits(r.p90, 1),
"Latency99p": humanize.CommafWithDigits(r.p99, 1),
"MaxLatency": humanize.CommafWithDigits(r.max*1000, 1),
"MinLatency": humanize.CommafWithDigits(r.min*1000, 1),
"AvgLatency": humanize.CommafWithDigits(r.avg*1000, 1),
"MedLatency": humanize.CommafWithDigits(r.p50*1000, 1),
"Latency90p": humanize.CommafWithDigits(r.p90*1000, 1),
"Latency99p": humanize.CommafWithDigits(r.p99*1000, 1),
}
if err := tmpl.Execute(w, data); err != nil {
return err
Expand Down

0 comments on commit fc8d555

Please sign in to comment.