From 3b3fdd650a85ca027a29b9876465ce071d2b5c72 Mon Sep 17 00:00:00 2001 From: qydysky Date: Thu, 1 Aug 2024 10:42:40 +0800 Subject: [PATCH] =?utf8?q?Improve=20=E7=B2=BE=E5=87=86=E7=9A=84=E4=BF=9D?= =?utf8?q?=E6=8C=81=E7=89=8C=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Reply/F.go b/Reply/F.go index 9be9e33..a9dc6d0 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1014,10 +1014,9 @@ func KeepMedalLight(ctx context.Context, common *c.Common) { ctx, done := pctx.WaitCtx(ctx) defer done() - h, m, s := time.Now().Clock() - now := h*3600 + m*60 + s - for { + h, m, s := time.Now().Clock() + now := h*3600 + m*60 + s if sec >= now { select { case <-time.After(time.Second * time.Duration(sec-now)): -- 2.39.2