Skip to content

Commit bd9b62a

Browse files
authored
Merge pull request goadapp#150 from cwaltken-edrans/change-column-name
Rename column AvgBytes/s to (post)unzip
2 parents b8d0c05 + efce2ff commit bd9b62a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ func renderRegion(data queue.AggData, y int) int {
408408
renderString(x, y, regionStr, termbox.ColorWhite|termbox.AttrBold, termbox.ColorBlue)
409409
x = 0
410410
y++
411-
headingStr := " TotReqs TotBytes AvgTime AvgReq/s AvgBytes/s"
411+
headingStr := " TotReqs TotBytes AvgTime AvgReq/s (post)unzip"
412412
renderString(x, y, headingStr, coldef|termbox.AttrBold, coldef)
413413
y++
414-
resultStr := fmt.Sprintf("%10d %10s %7.3fs %10.2f %10s/s", data.TotalReqs, humanize.Bytes(uint64(data.TotBytesRead)), float64(data.AveTimeForReq)/nano, data.AveReqPerSec, humanize.Bytes(uint64(data.AveKBytesPerSec)))
414+
resultStr := fmt.Sprintf("%10d %10s %7.3fs %10.2f %10s/s", data.TotalReqs, humanize.Bytes(uint64(data.TotBytesRead)), float64(data.AveTimeForReq)/nano, data.AveReqPerSec, humanize.Bytes(uint64(data.AveKBytesPerSec)))
415415
renderString(x, y, resultStr, coldef, coldef)
416416
y++
417417
headingStr = " Slowest Fastest Timeouts TotErrors"
@@ -464,8 +464,8 @@ func boldPrintln(msg string) {
464464
}
465465

466466
func printData(data *queue.AggData) {
467-
boldPrintln(" TotReqs TotBytes AvgTime AvgReq/s AvgBytes/s")
468-
fmt.Printf("%10d %10s %7.3fs %10.2f %10s/s\n", data.TotalReqs, humanize.Bytes(uint64(data.TotBytesRead)), float64(data.AveTimeForReq)/nano, data.AveReqPerSec, humanize.Bytes(uint64(data.AveKBytesPerSec)))
467+
boldPrintln(" TotReqs TotBytes AvgTime AvgReq/s (post)unzip")
468+
fmt.Printf("%10d %10s %7.3fs %10.2f %10s/s\n", data.TotalReqs, humanize.Bytes(uint64(data.TotBytesRead)), float64(data.AveTimeForReq)/nano, data.AveReqPerSec, humanize.Bytes(uint64(data.AveKBytesPerSec)))
469469
boldPrintln(" Slowest Fastest Timeouts TotErrors")
470470
fmt.Printf(" %7.3fs %7.3fs %10d %10d", float64(data.Slowest)/nano, float64(data.Fastest)/nano, data.TotalTimedOut, totErrors(data))
471471
fmt.Println("")

0 commit comments

Comments
 (0)