projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include PACKAGE_VERSION as version number for python module to fix #236
[rrdtool.git]
/
bindings
/
python
/
rrdtoolmodule.c
diff --git
a/bindings/python/rrdtoolmodule.c
b/bindings/python/rrdtoolmodule.c
index
4e20aa0
..
a2647b5
100644
(file)
--- a/
bindings/python/rrdtoolmodule.c
+++ b/
bindings/python/rrdtoolmodule.c
@@
-37,7
+37,9
@@
# define UNUSED(x) x
#endif
# define UNUSED(x) x
#endif
-static const char *__version__ = "$Revision: 1.14 $";
+
+#include "../../rrd_config.h"
+static const char *__version__ = PACKAGE_VERSION;
#include "Python.h"
#include "../../src/rrd_tool.h"
#include "Python.h"
#include "../../src/rrd_tool.h"
@@
-572,7
+574,7
@@
static PyObject *PyRRD_flushcached(
if (create_args("flushcached", args, &argc, &argv) < 0)
return NULL;
if (create_args("flushcached", args, &argc, &argv) < 0)
return NULL;
- if (rrd_
cmd_flush
(argc, argv) != 0) {
+ if (rrd_
flushcached
(argc, argv) != 0) {
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;