Merge remote-tracking branch 'gitlab/mr/423'

This commit is contained in:
meskio 2024-10-23 09:11:41 +02:00
commit 0e0ca8721e
No known key found for this signature in database
GPG key ID: 52B8F5AC97A2DA86

View file

@ -86,8 +86,10 @@ type EventOnProxyStats struct {
} }
func (e EventOnProxyStats) String() string { func (e EventOnProxyStats) String() string {
statString := fmt.Sprintf("In the last %v, there were %v completed connections. Traffic Relayed ↓ %v %v, ↑ %v %v.", statString := fmt.Sprintf("In the last %v, there were %v completed connections. Traffic Relayed ↓ %v %v (%.2f %v%s), ↑ %v %v (%.2f %v%s).",
e.SummaryInterval.String(), e.ConnectionCount, e.InboundBytes, e.InboundUnit, e.OutboundBytes, e.OutboundUnit) e.SummaryInterval.String(), e.ConnectionCount,
e.InboundBytes, e.InboundUnit, float64(e.InboundBytes)/e.SummaryInterval.Seconds(), e.InboundUnit, "/s",
e.OutboundBytes, e.OutboundUnit, float64(e.OutboundBytes)/e.SummaryInterval.Seconds(), e.OutboundUnit, "/s")
return statString return statString
} }