From: qydysky Date: Sat, 7 May 2022 17:52:04 +0000 (+0800) Subject: 添加平均每分钟观看人数提示 X-Git-Tag: v0.5.10~41^2~67 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=4c8b9254571c072370701b3423af0e0aadb46da2;p=bili_danmu%2F.git 添加平均每分钟观看人数提示 --- diff --git a/Reply/Reply.go b/Reply/Reply.go index 1f876cf..c3b504d 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -358,7 +358,9 @@ func (replyF) heartbeat(s int) { tmp = `(` + tmp + `)` } if watched_old != 0 { - tmp2 += `(+` + strconv.Itoa(c.C.Watched-watched_old) + `)` + tmp2 += `(+` + strconv.Itoa(c.C.Watched-watched_old) + " avg:" + tmp2 += strconv.Itoa(c.C.Watched / int(time.Since(c.C.Live_Start_Time)/time.Minute)) + tmp2 += `人/分)` } if renqi_old != s { fmt.Printf("\t人气:%d %s\t观看人数:%d %s\n", s, tmp, c.C.Watched, tmp2)