From: qydysky Date: Thu, 1 Aug 2024 02:42:40 +0000 (+0800) Subject: Improve 精准的保持牌子 X-Git-Tag: v0.14.14~2 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=3b3fdd650a85ca027a29b9876465ce071d2b5c72;p=bili_danmu%2F.git Improve 精准的保持牌子 --- 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)):