From 87573be0e3abfe80efbead661d5fc1002edbc17d Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sat, 12 Mar 2016 18:18:35 +0100 Subject: [PATCH] Update comment on Statistics --- data/statistics.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/statistics.go b/data/statistics.go index fc73e72..b615420 100644 --- a/data/statistics.go +++ b/data/statistics.go @@ -1,5 +1,10 @@ package data +/* + Nodes Lua based respondd do not have a integer type. + They always return float. +*/ + type Statistics struct { NodeId string `json:"node_id"` Clients Clients `json:"clients"` @@ -31,7 +36,6 @@ type MeshVPN struct { } type TrafficEntry struct { - // Some nodes return bytes as float value Bytes float64 `json:"bytes,omitempty"` Packets float64 `json:"packets,omitempty"` Dropped float64 `json:"dropped,omitempty"`