lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Luiz Henrique de Figueiredo wrote:
Making it display bytes now could break a lot of existing code, but
it's pretty easy to mod the code to add your own option...

For instance, collectgarbage("count") could return two values: one in K
and one in bytes. The change is simple:

And to combine this with Roberto's comment, the first value could be
in K, the second is (usage % 1024) :-)