4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-15 17:56:05 +00:00

Record session uptime (purely for the admin socket)

This commit is contained in:
Neil Alexander
2019-05-29 12:59:36 +01:00
parent b2513fce56
commit 78eb40cbad
4 changed files with 6 additions and 1 deletions

View File

@ -162,6 +162,7 @@ func (a *AdminSocket) Init(c *yggdrasil.Core, state *config.NodeState, log *log.
"bytes_sent": s.BytesSent,
"bytes_recvd": s.BytesRecvd,
"mtu": s.MTU,
"uptime": s.Uptime.Seconds(),
"was_mtu_fixed": s.WasMTUFixed,
"box_pub_key": s.PublicKey,
}