FASTERRRRRRRR

This commit is contained in:
Casey 2023-10-18 00:55:17 +03:00
parent 135b606686
commit e938f38ab1
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ while not src.isEnd() do
local pos, sz = src.getPosition(), src.getSize() local pos, sz = src.getPosition(), src.getSize()
term.setCursorPos(1, y) term.setCursorPos(1, y)
term.clearLine() term.clearLine()
if (i % 10) == 0 then if (i % 256) == 0 then
textProgress(pos / sz, colors.green, colors.gray, "%7.3f%% %8d / %8d", pos * 100 / sz, pos, sz) textProgress(pos / sz, colors.green, colors.gray, "%7.3f%% %8d / %8d", pos * 100 / sz, pos, sz)
os.sleep(0.01) os.sleep(0.01)
end end