From 824f0fc383cb7aafac5e4406bfa89f09fbb97c5c Mon Sep 17 00:00:00 2001 From: Larisa Ustalov Date: Tue, 26 Jun 2018 14:57:36 +0300 Subject: [PATCH] start-timestamp fix: it was printed before assignment --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 826a34d..b56a416 100644 --- a/main.go +++ b/main.go @@ -301,6 +301,12 @@ func main() { }() } + if startTimestamp != 0 { + startTime = time.Unix(0, startTimestamp) + } else { + startTime = time.Now() + } + fmt.Println("Configuration") fmt.Println("Mode:\t\t\t", mode) fmt.Println("Workload:\t\t", workload) @@ -332,12 +338,6 @@ func main() { fmt.Println("Write rate:\t\t", int64(maximumRate)/partitionCount) } - if startTimestamp != 0 { - startTime = time.Unix(0, startTimestamp) - } else { - startTime = time.Now() - } - if measureLatency { fmt.Printf(withLatencyLineFmt, "time", "operations/s", "rows/s", "errors", "max", "99.9th", "99th", "95th", "90th", "median", "mean", "") } else {