}
static int
-lua_rrd_flush(lua_State *L)
+lua_rrd_flushcached(lua_State *L)
{
- return rrd_common_call(L, "flush", rrd_cmd_flush);
+ return rrd_common_call(L, "flushcached", rrd_flushcached);
}
#if defined(DINF)
{"restore", lua_rrd_restore},
{"tune", lua_rrd_tune},
{"update", lua_rrd_update},
- {"flush", lua_rrd_flush},
+ {"flushcached", lua_rrd_flushcached},
#if defined(DINF)
{"info", lua_rrd_info},
{"updatev", lua_rrd_updatev},
RRDs::times(start, end)
RRDs::dump ...
RRDs::restore ...
- RRDs::flush ...
+ RRDs::flushcached ...
=head1 DESCRIPTION
RETVAL
int
-rrd_flush(...)
+rrd_flushcached(...)
PROTOTYPE: @
PREINIT:
int i;
return r;
}
-static char PyRRD_flush__doc__[] =
+static char PyRRD_flushcached__doc__[] =
"flush(args..): flush RRD files from memory\n"
" flush [--daemon address] file [file ...]";
-static PyObject *PyRRD_flush(
+static PyObject *PyRRD_flushcached(
PyObject UNUSED(*self),
PyObject * args)
{
int argc;
char **argv;
- if (create_args("flush", args, &argc, &argv) < 0)
+ if (create_args("flushcached", args, &argc, &argv) < 0)
return NULL;
if (rrd_cmd_flush(argc, argv) != 0) {
meth("info", PyRRD_info, PyRRD_info__doc__),
meth("graphv", PyRRD_graphv, PyRRD_graphv__doc__),
meth("updatev", PyRRD_updatev, PyRRD_updatev__doc__),
- meth("flush", PyRRD_flush, PyRRD_flush__doc__),
+ meth("flushcached", PyRRD_flushcached, PyRRD_flushcached__doc__),
{NULL, NULL, 0, NULL}
};
return rrd_call(rrd_update, args);
}
-VALUE rb_rrd_flush(
+VALUE rb_rrd_flushcached(
VALUE self,
VALUE args)
{
rb_define_module_function(mRRD, "restore", rb_rrd_restore, -2);
rb_define_module_function(mRRD, "tune", rb_rrd_tune, -2);
rb_define_module_function(mRRD, "update", rb_rrd_update, -2);
- rb_define_module_function(mRRD, "flush", rb_rrd_flush, -2);
+ rb_define_module_function(mRRD, "flushcached", rb_rrd_flushcached, -2);
rb_define_module_function(mRRD, "info", rb_rrd_info, -2);
rb_define_module_function(mRRD, "updatev", rb_rrd_updatev, -2);
rb_define_module_function(mRRD, "graphv", rb_rrd_graphv, -2);
}
/* Thread-safe version */
-static int Rrd_Flush(
+static int Rrd_Flushcached(
ClientData __attribute__((unused)) clientData,
Tcl_Interp *interp,
int argc,
static CmdInfo rrdCmds[] = {
{"Rrd::create", Rrd_Create, 1}, /* Thread-safe version */
{"Rrd::dump", Rrd_Dump, 0}, /* Thread-safe version */
- {"Rrd::flush", Rrd_Flush, 0},
+ {"Rrd::flushcached", Rrd_Flushcached, 0},
{"Rrd::last", Rrd_Last, 0}, /* Thread-safe version */
{"Rrd::lastupdate", Rrd_Lastupdate, 0}, /* Thread-safe version */
{"Rrd::update", Rrd_Update, 1}, /* Thread-safe version */