Skip to content

Commit 8cd16c7

Browse files
committed
Bold the headings
1 parent 23c20ca commit 8cd16c7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cli/cli.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,16 @@ func renderString(x int, y int, str string, f termbox.Attribute, b termbox.Attri
104104
}
105105
}
106106

107+
func boldPrintln(msg string) {
108+
fmt.Printf("\033[1m%s\033[0m\n", msg)
109+
}
110+
107111
func printSummary(result *queue.RegionsAggData) {
108-
fmt.Println("Summary")
112+
boldPrintln("Summary")
109113
fmt.Println("")
110114
for region, data := range result.Regions {
111115
fmt.Println("Region: " + region)
112-
fmt.Println(" TotReqs TotBytes AveTime AveReq/s Ave1stByte")
116+
boldPrintln(" TotReqs TotBytes AveTime AveReq/s Ave1stByte")
113117
fmt.Printf("%10d %10d %7.2fs %10.2f %7.2fs\n", data.TotalReqs, data.TotBytesRead, float64(data.AveTimeForReq)/nano, data.AveReqPerSec, float64(data.AveTimeToFirst)/nano)
114118
fmt.Println("")
115119
}

0 commit comments

Comments
 (0)