From ab4ffc3b62151d23f7e8e54dab52241d866b2cb1 Mon Sep 17 00:00:00 2001 From: hughshen1996 <2899592919@qq.com> Date: Mon, 20 Jul 2020 16:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A832=E4=BD=8D=E4=B8=8B?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=87=BA=E7=8E=B0overflows=20int=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#245)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pu.shen --- bench/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/report.go b/bench/report.go index d1f9dd0..691f86a 100644 --- a/bench/report.go +++ b/bench/report.go @@ -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 }