From 55991260b0394b531e6b95f791d7c3bb4a2275e1 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sun, 20 Nov 2016 19:02:03 +0100 Subject: [PATCH] Fix import of global stats Use uin32 instead of float64 --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2d70c35..726d35e 100644 --- a/main.go +++ b/main.go @@ -86,8 +86,8 @@ func importRRD(path string) { database.MeasurementGlobal, nil, map[string]interface{}{ - "nodes": ds.Nodes, - "clients.total": ds.Clients, + "nodes": uint32(ds.Nodes), + "clients.total": uint32(ds.Clients), }, ds.Time, )