index 2060f3bf62bf3c77fb875c1e01124785444fe506..690ba29b740634f725852ae40ca35c5f7fbed745 100644 (file)
for (i=1; i<argc; i++) {
/* accepts string or number */
if (lua_isstring(L, i) || lua_isnumber(L, i)) {
- if (!(argv[i] = strdup(lua_tostring (L, i)))) {
+ if (!(argv[i] = lua_tostring (L, i))) {
/* raise an error and never return */
luaL_error(L, "%s - error duplicating string area for arg #%d",
cmd, i);
}
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},