fix comment: check start time (#2038)

This commit is contained in:
Zwlin
2025-06-15 20:59:01 +08:00
committed by GitHub
parent e21604783a
commit b02d619dd8

View File

@@ -163,7 +163,7 @@ static int
timing_enable(lua_State *L, int co_index, lua_Number *start_time) { timing_enable(lua_State *L, int co_index, lua_Number *start_time) {
lua_pushvalue(L, co_index); lua_pushvalue(L, co_index);
lua_rawget(L, lua_upvalueindex(1)); lua_rawget(L, lua_upvalueindex(1));
if (lua_isnil(L, -1)) { // check total time if (lua_isnil(L, -1)) { // check start time
lua_pop(L, 1); lua_pop(L, 1);
return 0; return 0;
} }