From 816793875c3b740e9d235cbf096a4e3be3d88f4f Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 8 May 2022 01:55:55 +0800 Subject: [PATCH] =?utf8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B3=E5=9D=87=E6=AF=8F?= =?utf8?q?=E5=88=86=E9=92=9F=E8=A7=82=E7=9C=8B=E4=BA=BA=E6=95=B0=E6=8F=90?= =?utf8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/Reply.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Reply/Reply.go b/Reply/Reply.go index c3b504d..c094f08 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -357,17 +357,18 @@ func (replyF) heartbeat(s int) { } tmp = `(` + tmp + `)` } + + var pperm = c.C.Watched / int(time.Since(c.C.Live_Start_Time)/time.Minute) if watched_old != 0 { - 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 += `人/分)` + tmp2 += `(avg: ` + strconv.Itoa(pperm) + `人/分 ` + tmp2 += strconv.Itoa(pperm-watched_old) + `)` } if renqi_old != s { fmt.Printf("\t人气:%d %s\t观看人数:%d %s\n", s, tmp, c.C.Watched, tmp2) } reply_log.Base_add(`人气`).Log_show_control(false).L(`I: `, "当前人气", s) renqi_old = s - watched_old = c.C.Watched + watched_old = pperm } //Msg-房间特殊活动 -- 2.39.2