diff --git a/common/stats/session/session.go b/common/stats/session/session.go index 6d73db5..2fcf501 100644 --- a/common/stats/session/session.go +++ b/common/stats/session/session.go @@ -51,15 +51,16 @@ func (s *simpleSessionStater) Start() error { return sessions[i].SessionStart.Sub(sessions[j].SessionStart) < 0 }) _, _ = fmt.Fprintf(w, "") - _, _ = fmt.Fprintf(w, "") + _, _ = fmt.Fprintf(w, "") sort.Slice(sessions, func(i, j int) bool { return sessions[i].SessionStart.After(sessions[j].SessionStart) }) for _, sess := range sessions { - _, _ = fmt.Fprintf(w, "", + _, _ = fmt.Fprintf(w, "", process(sess.ProcessName), - sess.Protocol, + sess.Proxy, + sess.Network, date(sess.SessionStart), duration(sess.SessionStart, sess.SessionClose), // sess.DialerAddr, diff --git a/common/stats/stats.go b/common/stats/stats.go index e63884e..8790982 100644 --- a/common/stats/stats.go +++ b/common/stats/stats.go @@ -17,7 +17,8 @@ type SessionStater interface { type Session struct { ProcessName string - Protocol string + Proxy string + Network string DialerAddr string ClientAddr string TargetAddr string
Process NameProtocolDateDurationClient AddrTarget AddrUploadDownload
ProcessProxyNetworkDateDurationClient AddrTarget AddrUploadDownload
%v%v%v%v%v%v%v%v
%v%v%v%v%v%v%v%v%v