From ec5d0d14f873f6ebcf54aedde7ca4666110cde28 Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 17 Oct 2023 20:23:20 +0300 Subject: [PATCH] This commit is sponsored by Keeps --- tapeget.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tapeget.lua b/tapeget.lua index 87a1754..2da3eb9 100644 --- a/tapeget.lua +++ b/tapeget.lua @@ -56,11 +56,13 @@ local headers = req.getResponseHeaders() local length = headers["content-length"] or 1 local _, y = term.getCursorPos() +local written = 0 while true do local chunk = req.read(256) if not chunk then break end + written = written + #chunk tape.write(chunk) term.setCursorPos(1, y) term.clearLine()