aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelikhoo <xiaokangwang@outlook.com>2021-12-20 16:27:12 +0000
committerShelikhoo <xiaokangwang@outlook.com>2022-01-25 13:03:19 +0000
commiteb229d512b3b1015e28dfcb744000b66a66e648a (patch)
treeb67190b1ec6547f67cd7144172f719dca84b2400
parent88af9da4a25c26169cadaee9256ce7539db17b19 (diff)
downloadsnowflake-eb229d512b3b1015e28dfcb744000b66a66e648a.tar.gz
snowflake-eb229d512b3b1015e28dfcb744000b66a66e648a.zip
Fix ProxyEventLogger output
-rw-r--r--proxy/lib/pt_event_logger.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy/lib/pt_event_logger.go b/proxy/lib/pt_event_logger.go
index 6c4f4e9..f6552c8 100644
--- a/proxy/lib/pt_event_logger.go
+++ b/proxy/lib/pt_event_logger.go
@@ -36,7 +36,7 @@ func (p *logEventLogger) OnNewSnowflakeEvent(e event.SnowflakeEvent) {
func (p *logEventLogger) logTick() error {
inbound, inboundUnit := formatTraffic(p.inboundSum)
outbound, outboundUnit := formatTraffic(p.inboundSum)
- fmt.Printf("In the last %v, there are %v connections. Traffic Relaied ↑ %v %v, ↓ %v %v.\n",
+ fmt.Printf("In the last %v, there are %v connections. Traffic Relayed ↑ %v %v, ↓ %v %v.\n",
p.logPeriod.String(), p.connectionCount, inbound, inboundUnit, outbound, outboundUnit)
p.outboundSum = 0
p.inboundSum = 0