Fix progress update bug
This commit is contained in:
parent
82e3f5e67d
commit
49aa10bee7
@ -52,8 +52,9 @@ local Cache = {}
|
|||||||
function Cache.makeCache(cacheLoader)
|
function Cache.makeCache(cacheLoader)
|
||||||
local count = countNamed(store)
|
local count = countNamed(store)
|
||||||
local state = {}
|
local state = {}
|
||||||
local progress = 1
|
local progress = 0
|
||||||
for name,chest in pairs(store) do
|
for name,chest in pairs(store) do
|
||||||
|
progress = progress + 1
|
||||||
local percent = ""..((progress / count) * 100)
|
local percent = ""..((progress / count) * 100)
|
||||||
print(percent:sub(1, math.min(#percent, 6))..("0"):rep(6 - #percent).."% ("..progress.."/"..count..")")
|
print(percent:sub(1, math.min(#percent, 6))..("0"):rep(6 - #percent).."% ("..progress.."/"..count..")")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user