Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #150 from cwaltken-edrans/change-column-name
Browse files Browse the repository at this point in the history
Rename column AvgBytes/s to (post)unzip
  • Loading branch information
zeph authored Jul 31, 2017
2 parents b8d0c05 + efce2ff commit bd9b62a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@ func renderRegion(data queue.AggData, y int) int {
renderString(x, y, regionStr, termbox.ColorWhite|termbox.AttrBold, termbox.ColorBlue)
x = 0
y++
headingStr := " TotReqs TotBytes AvgTime AvgReq/s AvgBytes/s"
headingStr := " TotReqs TotBytes AvgTime AvgReq/s (post)unzip"
renderString(x, y, headingStr, coldef|termbox.AttrBold, coldef)
y++
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)))
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)))
renderString(x, y, resultStr, coldef, coldef)
y++
headingStr = " Slowest Fastest Timeouts TotErrors"
Expand Down Expand Up @@ -464,8 +464,8 @@ func boldPrintln(msg string) {
}

func printData(data *queue.AggData) {
boldPrintln(" TotReqs TotBytes AvgTime AvgReq/s AvgBytes/s")
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)))
boldPrintln(" TotReqs TotBytes AvgTime AvgReq/s (post)unzip")
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)))
boldPrintln(" Slowest Fastest Timeouts TotErrors")
fmt.Printf(" %7.3fs %7.3fs %10d %10d", float64(data.Slowest)/nano, float64(data.Fastest)/nano, data.TotalTimedOut, totErrors(data))
fmt.Println("")
Expand Down

0 comments on commit bd9b62a

Please sign in to comment.