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

Function ts_lua_stat_decrement

plugins/lua/ts_lua_stat.cc:200–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static int
201ts_lua_stat_decrement(lua_State *L)
202{
203 int decrement;
204 int idp;
205 decrement = luaL_checkinteger(L, 2);
206
207 luaL_checktype(L, 1, LUA_TTABLE);
208 lua_getfield(L, -2, "id");
209 idp = luaL_checknumber(L, -1);
210 lua_pop(L, 1);
211
212 TSStatIntDecrement(idp, decrement);
213
214 return 0;
215}
216
217static int
218ts_lua_stat_get_value(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSStatIntDecrementFunction · 0.85

Tested by

no test coverage detected