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
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
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,
}