From a68e13d311c8fb74e0732677ce8304b482628709 Mon Sep 17 00:00:00 2001 From: Geno Date: Mon, 13 Mar 2017 12:15:22 +0100 Subject: [PATCH] [TASK] implement gateway_nexthop (#39) https://github.com/freifunk-gluon/gluon/pull/795 --- data/statistics.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/data/statistics.go b/data/statistics.go index 579d1d4..942c651 100644 --- a/data/statistics.go +++ b/data/statistics.go @@ -7,16 +7,17 @@ package data //Statistics struct type Statistics struct { - NodeID string `json:"node_id"` - Clients Clients `json:"clients"` - RootFsUsage float64 `json:"rootfs_usage,omitempty"` - LoadAverage float64 `json:"loadavg,omitempty"` - Memory Memory `json:"memory,omitempty"` - Uptime float64 `json:"uptime,omitempty"` - Idletime float64 `json:"idletime,omitempty"` - GatewayIPv4 string `json:"gateway,omitempty"` - GatewayIPv6 string `json:"gateway6,omitempty"` - Processes struct { + NodeID string `json:"node_id"` + Clients Clients `json:"clients"` + RootFsUsage float64 `json:"rootfs_usage,omitempty"` + LoadAverage float64 `json:"loadavg,omitempty"` + Memory Memory `json:"memory,omitempty"` + Uptime float64 `json:"uptime,omitempty"` + Idletime float64 `json:"idletime,omitempty"` + GatewayIPv4 string `json:"gateway,omitempty"` + GatewayIPv6 string `json:"gateway6,omitempty"` + GatewayNexthop string `json:"gateway_nexthop,omitempty"` + Processes struct { Total uint32 `json:"total"` Running uint32 `json:"running"` } `json:"processes,omitempty"`