Update comment on Statistics

This commit is contained in:
Julian Kornberger 2016-03-12 18:18:35 +01:00
parent db0524c0a1
commit 87573be0e3
1 changed files with 5 additions and 1 deletions

View File

@ -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"`