From b44049797c059748fd0fc8922280bd434466df6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Wennerstr=C3=B6m?= Date: Mon, 9 Mar 2020 22:26:48 +0100 Subject: [PATCH] Uptime is float as time.Seconds returns a float64 See: https://golang.org/src/time/time.go?s=25778:25813#L792 I stumbled upon this when playing with the Admin API, example: { "peers": { "": { ... "uptime": 625.732186871 ... }, "": { ... "uptime": 625.638570027 ... } } } --- admin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin.md b/admin.md index c18536b..cf5caf2 100644 --- a/admin.md +++ b/admin.md @@ -118,7 +118,7 @@ For each IPv6 address: - `bytes_recvd` (`uint64`) contains the number of bytes received from that peer - `endpoint` (`string`) contains the connected IPv4/IPv6 address and port of the peering - `port` (`uint8`) contains the local switch port number for that peer -- `uptime` (`uint32`) contains the number of seconds since the peer connection was established +- `uptime` (`float64`) contains the number of seconds since the peer connection was established #### `addPeer`