From 8938c6a3d13fa7649b9e4626e521c679995ee8b6 Mon Sep 17 00:00:00 2001 From: qydysky Date: Wed, 21 Apr 2021 21:24:50 +0800 Subject: [PATCH] =?utf8?q?=E6=9B=B4=E5=B0=91=E5=BC=B9=E5=B9=95=E9=80=BB?= =?utf8?q?=E8=BE=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 4 ++-- Reply/Msg.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Reply/F.go b/Reply/F.go index 10bb722..4bdaac4 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -899,7 +899,7 @@ func init() { lessdanmu.Lock() if ptk := lessdanmu.limit.PTK();ptk == lessdanmu.max_num { - if lessdanmu.threshold > 0.71 { + if lessdanmu.threshold > 0.01 { lessdanmu.threshold -= 0.01 } } else if ptk == 0 { @@ -927,7 +927,7 @@ func Lessdanmuf(s string) (show bool) { lessdanmu.buf = append(lessdanmu.buf[1:], s) lessdanmu.RLock() - show = o > lessdanmu.threshold + show = o < lessdanmu.threshold lessdanmu.RUnlock() if show && lessdanmu.max_num > 0 { diff --git a/Reply/Msg.go b/Reply/Msg.go index cbd83fe..e199697 100644 --- a/Reply/Msg.go +++ b/Reply/Msg.go @@ -7,7 +7,7 @@ import ( ) /* - 数据为WS_OP_MESSAGE类型的数据分派https://baidu.com + 数据为WS_OP_MESSAGE类型的数据分派 */ var msglog = c.Log.Base(`Msg`) -- 2.39.2