Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Memory Usage
- local formatMemory = function(bytes)
- bytes = bytes * 1024
- local s = {'B', 'Kb', 'MB', 'GB', 'TB'}
- local e = floor(abs(log(bytes+1)/log(1024)))
- return format("%.1f "..s[e+1], (bytes/1024^e))
- end
Add Comment
Please, Sign In to add comment