plugins/filter_lua/lua.c
static void lua_pushtimetable(lua_State *l, struct flb_time *tm)
{
    lua_createtable(l, 0, 2);

    /* seconds */
    lua_pushlstring(l, "sec", 3);
    lua_pushinteger(l, tm->tm.tv_sec);
    lua_settable(l, -3);

    /* nanoseconds */
    lua_pushlstring(l, "nsec", 4);
    lua_pushinteger(l, tm->tm.tv_nsec);
    lua_settable(l, -3);
}
/* Push timestamp as a Lua table into the stack */
Push timestamp as a Lua table into the stack
Push timestamp as a Lua table into the stack
static void lua_pushtimetable(lua_State *l, struct flb_time *tm)
{
    lua_createtable(l, 0, 2);
    lua_pushlstring(l, "sec", 3);
    lua_pushinteger(l, tm->tm.tv_sec);
    lua_settable(l, -3);
    lua_pushlstring(l, "nsec", 4);
    lua_pushinteger(l, tm->tm.tv_nsec);
    lua_settable(l, -3);
}
static void lua_pushtimetable ( lua_State * l , struct flb_time * tm ) { lua_createtable ( l , 0 , 2 ) ; lua_pushlstring ( l , " " , 3 ) ; lua_pushinteger ( l , tm -> tm . tv_sec ) ; lua_settable ( l , -3 ) ; lua_pushlstring ( l , " " , 4 ) ; lua_pushinteger ( l , tm -> tm . tv_nsec ) ; lua_settable ( l , -3 ) ; }
Push timestamp as a Lua table into the stack
Push timestamp as a Lua table into the stack
/* seconds */ /* nanoseconds */