Michael Tremer [Mon, 23 Nov 2015 02:15:33 +0000 (02:15 +0000)]
Fix crash in lastupdate() method
When a RRD database contains floating point values, the
PyRRD_Int_FromString function returns NULL, which will then be tried
to be put into a dictionary.
This operation fails as PyDict_SetItemString does not handle NULL
and the program crashes with SEGV.
This patch parses the value as a floating point number
and will add that instead. If the value could not be parsed,
None will be added instead.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Christian Jurk [Thu, 19 Dec 2013 16:13:45 +0000 (17:13 +0100)]
* Added support for Python 2.7 (other 2.x versions might also work, but its not tested)
* Added dump command
* Fixed some issues regarding generating graphs with graphv on Python 3.3
Christian Jurk [Tue, 18 Sep 2012 01:34:02 +0000 (03:34 +0200)]
* Added initial code for high-level module for using rrdtool in an
object-oriented manner.
* Updated README.
* Updated setup script to include the high-level module, as well as
building the low-level extension.
Christian Jurk [Mon, 17 Sep 2012 23:13:19 +0000 (01:13 +0200)]
* On POSIX systems, the 'graph' function will now cache data in memory
when creating graphs with the filename argument "-". On other systems,
a exception is raised when trying to use the "-" filename argument.
* Added updatev, flushcached, graphv, tune, first, last, resize, info
and lib_version functions.
Christian Jurk [Mon, 17 Sep 2012 02:08:55 +0000 (04:08 +0200)]
* Added fetch and graph function.
* Initial code added for keeping graphs in memory (when the filename for
the graph functions is being "-". It will then redirect stdout to a
buffer and return it as a Python bytes object as part of the return
tuple.
Christian Jurk [Thu, 13 Sep 2012 23:31:22 +0000 (01:31 +0200)]
* Added distutil setup script for building and installing the module.
* Added initial code with the "create" function which wraps rrdtool database creation.