MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_stat_get_value

Function ts_lua_stat_get_value

plugins/lua/ts_lua_stat.cc:217–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217static int
218ts_lua_stat_get_value(lua_State *L)
219{
220 int value;
221 int idp;
222
223 luaL_checktype(L, 1, LUA_TTABLE);
224 lua_getfield(L, -1, "id");
225 idp = luaL_checknumber(L, -1);
226 lua_pop(L, 1);
227
228 value = TSStatIntGet(idp);
229
230 lua_pushnumber(L, value);
231 return 1;
232}
233
234static int
235ts_lua_stat_set_value(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSStatIntGetFunction · 0.85

Tested by

no test coverage detected