Skip to content

Commit

Permalink
解决在32位下编译出现overflows int问题 (#245)
Browse files Browse the repository at this point in the history
Co-authored-by: pu.shen <[email protected]>
  • Loading branch information
orionbetasp and pu.shen authored Jul 20, 2020
1 parent e4cad09 commit ab4ffc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (r *Report) startReport() {
begin := time.Now()
interval := r.Duration / 10

if interval == 0 || int(interval) > int(3*time.Second) {
if interval == 0 || int64(interval) > int64(3*time.Second) {
interval = 3 * time.Second
}

Expand Down

0 comments on commit ab4ffc3

Please sign in to comment.