From efce2ff1bbca55e8320fc1e37459fa5500248de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Clemens=20W=C3=A4ltken?= Date: Mon, 24 Jul 2017 12:38:41 -0300 Subject: [PATCH] Rename column AvgBytes/s to (post)unzip This also fixes the alignment on the last two columns. --- cli/cli.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index 753767bf..b685a068 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -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" @@ -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("")