Skip to content

Commit

Permalink
fix derp
Browse files Browse the repository at this point in the history
Signed-off-by: hexian000 <hexian000@outlook.com>
  • Loading branch information
hexian000 committed Jun 23, 2023
1 parent 018d4e8 commit 277573b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion forwarder/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type forwarder struct {
func New(maxConn int, g routines.Group) Forwarder {
return &forwarder{
conn: make(map[net.Conn]struct{}),
counter: make(chan struct{}, maxConn*2),
counter: make(chan struct{}, maxConn),
closeCh: make(chan struct{}),
g: g,
}
Expand Down
2 changes: 1 addition & 1 deletion metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func RunHTTPServer(l net.Listener, s *Server) error {
}
printf("\n")
printf("%-20s: %v\n", "Tunnels", len(s.getConfig().Tunnels))
printf("%-20s: %v / %v\n", "Sessions / Forwards", s.NumSessions(), s.f.Count())
printf("%-20s: %v / %v\n", "Sessions / Streams", s.NumSessions(), s.f.Count())
printf("%-20s: %v\n", "Managed Routines", s.g.Count())
rx, tx := s.CountBytes()
printf("%-20s: %s / %s\n", "Traffic (Rx/Tx)", formats.IECBytes(float64(rx)), formats.IECBytes(float64(tx)))
Expand Down

0 comments on commit 277573b

Please sign in to comment.