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

Function ts_lua_mgmt_get_int

plugins/lua/ts_lua_mgmt.cc:50–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static int
51ts_lua_mgmt_get_int(lua_State *L)
52{
53 const char *name;
54 size_t name_len;
55 TSMgmtInt int_val;
56
57 name = luaL_checklstring(L, 1, &name_len);
58
59 if (TS_SUCCESS == TSMgmtIntGet(name, &int_val)) {
60 lua_pushinteger(L, int_val);
61 return 1;
62 }
63
64 return 0;
65}
66
67static int
68ts_lua_mgmt_get_counter(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSMgmtIntGetFunction · 0.85

Tested by

no test coverage detected