Skip to content

Commit

Permalink
start-timestamp fix: it was printed before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
larisau committed Jun 26, 2018
1 parent 83ddf64 commit 824f0fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 824f0fc

Please sign in to comment.