]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
更少弹幕逻辑修复
authorqydysky <qydysky@foxmail.com>
Wed, 21 Apr 2021 13:24:50 +0000 (21:24 +0800)
committerqydysky <qydysky@foxmail.com>
Wed, 21 Apr 2021 13:24:50 +0000 (21:24 +0800)
Reply/F.go
Reply/Msg.go

index 10bb7227dcd940fd9dde2bc5d380601a87d424ec..4bdaac44e946c1761117c750183a011c20a21e0b 100644 (file)
@@ -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 {
index cbd83fef17f7efda7caaabae28be65df52394b0f..e1996977ad310d5219be294e59da7491cc20d159 100644 (file)
@@ -7,7 +7,7 @@ import (
 )
 
 /*
-       数据为WS_OP_MESSAGE类型的数据分派https://baidu.com
+       数据为WS_OP_MESSAGE类型的数据分派
 */
 
 var msglog = c.Log.Base(`Msg`)