]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix missing double values in rrdinfo.
authorStefan Gluszek <stefang@opera.com>
Tue, 28 May 2019 12:01:46 +0000 (14:01 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 28 May 2019 18:08:43 +0000 (21:08 +0300)
The double values of rrd info were never properly converted to the
python dictionary causing some keys (e.g. xff) to be missing.

bindings/python/rrdtoolmodule.c

index 248afd418c6ef9fda24adc35f623df7f9127413a..3bc795a07baa9cfc4d4bac284e50e2b7ec1daa55 100644 (file)
@@ -214,7 +214,7 @@ _rrdtool_util_info2dict(const rrd_info_t *data)
                     Py_INCREF(Py_None);
                     val = Py_None;
                 } else
-                    PyFloat_FromDouble(data->value.u_val);
+                    val = PyFloat_FromDouble(data->value.u_val);
                 break;
 
             case RD_I_CNT: