From 03e01c9bb25165ec7f236f00b0b3deec5469ee77 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 19 Sep 2014 16:23:23 -0700 Subject: [PATCH] store: Fixed decoding of DataPoint.Value fields. These are floating point values encoded as JSON string. --- sysdb/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdb/store.go b/sysdb/store.go index 4a71428..6f082f3 100644 --- a/sysdb/store.go +++ b/sysdb/store.go @@ -240,7 +240,7 @@ type Host struct { // A DataPoint describes a datum at a certain point of time. type DataPoint struct { Timestamp Time `json:"timestamp"` - Value float64 `json:"value"` + Value float64 `json:"value,string"` } // A Timeseries describes a sequence of data-points. -- 2.30.2