diff --git a/src/lua/fiber.c b/src/lua/fiber.c index efb0a492194e491eb02618cdf3d20b25baa1ea17..edbd06ebcae6db41d25173e9f40de2ac5ac56a7a 100644 --- a/src/lua/fiber.c +++ b/src/lua/fiber.c @@ -282,9 +282,11 @@ lbox_fiber_statof(struct fiber *f, void *cb_ctx, bool backtrace) lua_pushnumber(L, f->csw); lua_settable(L, -3); +#if ENABLE_FIBER_TOP lua_pushliteral(L, "time"); lua_pushnumber(L, f->clock_stat.cputime / (double) FIBER_TIME_RES); lua_settable(L, -3); +#endif /* ENABLE_FIBER_TOP */ lua_pushliteral(L, "memory"); lua_newtable(L);