mirror of
https://github.com/kepler155c/opus
synced 2025-10-20 10:17:39 +00:00
cleanup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
local class = require('class')
|
||||
local Logger = require('logger')
|
||||
|
||||
local ChestProvider = class()
|
||||
|
||||
|
@@ -357,9 +357,9 @@ end
|
||||
|
||||
--[[ String functions ]] --
|
||||
function Util.toBytes(n)
|
||||
if n >= 1000000 then
|
||||
if n >= 1000000 or n <= -1000000 then
|
||||
return string.format('%sM', Util.round(n/1000000, 1))
|
||||
elseif n >= 1000 then
|
||||
elseif n >= 1000 or n <= -1000 then
|
||||
return string.format('%sK', Util.round(n/1000, 1))
|
||||
end
|
||||
return tostring(n)
|
||||
|
Reference in New Issue
Block a user