diff --git a/.goreleaser.yml b/.goreleaser.yml
index 0bcaa4fd..bf5a53e2 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -11,8 +11,6 @@ builds:
- amd64
- main: ./cmd/ghz-web
binary: ghz-web
- env:
- - CGO_ENABLED=0
goos:
- darwin
- linux
diff --git a/cmd/ghz-web/main.go b/cmd/ghz-web/main.go
index 6b1b9c64..33de0979 100644
--- a/cmd/ghz-web/main.go
+++ b/cmd/ghz-web/main.go
@@ -38,7 +38,7 @@ func main() {
}
flag.Usage = func() {
- fmt.Fprint(os.Stderr, fmt.Sprintf(usage, runtime.NumCPU()))
+ fmt.Fprint(os.Stderr, usage)
}
flag.Parse()
diff --git a/printer/printer.go b/printer/printer.go
index 4248c9ae..9976024a 100644
--- a/printer/printer.go
+++ b/printer/printer.go
@@ -8,6 +8,7 @@ import (
"log"
"strings"
"text/tabwriter"
+ "time"
"github.com/alecthomas/template"
"github.com/bojand/ghz/runner"
@@ -246,6 +247,7 @@ var tmplFuncMap = template.FuncMap{
"formatPercent": formatPercent,
"formatStatusCode": formatStatusCode,
"formatErrorDist": formatErrorDist,
+ "formatDate": formatDate,
}
func jsonify(v interface{}, pretty bool) string {
@@ -267,6 +269,10 @@ func formatMilli(duration float64) string {
return fmt.Sprintf("%4.2f", duration*1000)
}
+func formatDate(d time.Time) string {
+ return d.Format("Mon Jan _2 2006 @ 15:04:05")
+}
+
func formatSeconds(duration float64) string {
return fmt.Sprintf("%4.2f", duration)
}
@@ -373,6 +379,16 @@ duration (ms),status,error{{ range $i, $v := .Details }}
+
+
+ {{ if .Name }}
+
{{ .Name }}
+ {{ end }}
+ {{ if .Date }}
+ {{ formatDate .Date }}
+ {{ end }}
+
+