LuaJIT-5.3.6
LuaJIT-5.3.6 copied to clipboard
这里为啥是res + res/1024?
trafficstars
https://github.com/Yu2erer/LuaJIT-5.3.6/blob/369119a005b925213050950d72694226b7512cac/src/YGC.c#L276
https://github.com/Yu2erer/LuaJIT-5.3.6/blob/369119a005b925213050950d72694226b7512cac/src/YGC.c#L249 已经做了单位B到KB的转换,我理解的是:直接返回 lua_pushnumber(L, (lua_Number)res);
笔误,本意是想算的更精确一些,结果这边直接/1024了,应该是 Kbytes + bytes / 1024