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

Function ts_lua_mgmt_get_float

plugins/lua/ts_lua_mgmt.cc:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static int
84ts_lua_mgmt_get_float(lua_State *L)
85{
86 const char *name;
87 size_t name_len;
88 TSMgmtFloat float_val;
89
90 name = luaL_checklstring(L, 1, &name_len);
91 if (TS_SUCCESS == TSMgmtFloatGet(name, &float_val)) {
92 lua_pushnumber(L, float_val);
93 return 1;
94 }
95 return 0;
96}
97
98static int
99ts_lua_mgmt_get_string(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSMgmtFloatGetFunction · 0.85

Tested by

no test coverage detected