From e1fb19862cff08503e750399a77b69a692f10381 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Mon, 28 Oct 2019 12:29:56 +0800 Subject: [PATCH] add --- framemgr.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/framemgr.go b/framemgr.go index bec50f4..b92f450 100644 --- a/framemgr.go +++ b/framemgr.go @@ -648,7 +648,8 @@ func (fm *FrameMgr) printStat() { fs := fm.fs loggo.Info("\nsendDataNum %d\nrecvDataNum %d\nsendReqNum %d\nrecvReqNum %d\nsendAckNum %d\nrecvAckNum %d\n"+ "sendDataNumsMap %s\nrecvDataNumsMap %s\nsendReqNumsMap %s\nrecvReqNumsMap %s\nsendAckNumsMap %s\nrecvAckNumsMap %s\n"+ - "sendping %d\nrecvping %d\nsendpong %d\nrecvpong %d\n", + "sendping %d\nrecvping %d\nsendpong %d\nrecvpong %d\n"+ + "sendwin %d\nrecvwin %d\n", fs.sendDataNum, fs.recvDataNum, fs.sendReqNum, fs.recvReqNum, fs.sendAckNum, fs.recvAckNum, @@ -656,7 +657,8 @@ func (fm *FrameMgr) printStat() { fm.printStatMap(&fs.sendReqNumsMap), fm.printStatMap(&fs.recvReqNumsMap), fm.printStatMap(&fs.sendAckNumsMap), fm.printStatMap(&fs.recvAckNumsMap), fs.sendping, fs.recvping, - fs.sendpong, fs.recvpong) + fs.sendpong, fs.recvpong, + fm.sendwin.Len(), fm.recvwin.Len()) fm.resetStat() } }