From: Sebastian Harl Date: Fri, 19 Sep 2014 23:23:23 +0000 (-0700) Subject: store: Fixed decoding of DataPoint.Value fields. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=03e01c9bb25165ec7f236f00b0b3deec5469ee77;p=sysdb%2Fgo.git store: Fixed decoding of DataPoint.Value fields. These are floating point values encoded as JSON string. --- 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.