From 66666d98afc65f4f6f552ad7e856a28b21b3c2ee Mon Sep 17 00:00:00 2001 From: lifeiyi <736926938@qq.com> Date: Mon, 29 Apr 2019 15:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/Timer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Timer.go b/util/Timer.go index 5054692..cc52813 100644 --- a/util/Timer.go +++ b/util/Timer.go @@ -17,11 +17,11 @@ func (slf *Timer) SetupTimerOnlyInterval(ms int32) { slf.timeinterval = int64(ms) * 1e6 } -func (slf *Timer) SetupTimerTheHour(ms int32) { +func (slf *Timer) SetupTimerTheHour(hour int32) { timeNow := time.Now() nt := timeNow.Truncate(time.Hour * 1) slf.lasttime = nt.UnixNano() - slf.timeinterval = int64(ms) * 1e6 + slf.timeinterval = int64(hour) * 3600 * 1e9 } func (slf *Timer) CheckTimeOut() bool {