aboutsummaryrefslogtreecommitdiff
path: root/etc/get.lua
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2022-03-18 12:12:39 +0100
committerCaleb Maclennan <caleb@alerque.com>2022-03-19 17:13:15 +0300
commit601ad8d59f11d7180015d0ecfb9d0a8d67f6f5c1 (patch)
treee3b9c152b9ff8a431d1431edb0a42d051d256f13 /etc/get.lua
parent480c05257211b3e566f33fdf8cf051233e2dab30 (diff)
downloadluasocket-601ad8d59f11d7180015d0ecfb9d0a8d67f6f5c1.tar.gz
luasocket-601ad8d59f11d7180015d0ecfb9d0a8d67f6f5c1.tar.bz2
luasocket-601ad8d59f11d7180015d0ecfb9d0a8d67f6f5c1.zip
refactor: Address issues raised by linter
Diffstat (limited to 'etc/get.lua')
-rw-r--r--etc/get.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/get.lua b/etc/get.lua
index 9edc235..d53c465 100644
--- a/etc/get.lua
+++ b/etc/get.lua
@@ -71,7 +71,7 @@ function stats(size)
71 local current = socket.gettime() 71 local current = socket.gettime()
72 if chunk then 72 if chunk then
73 -- total bytes received 73 -- total bytes received
74 got = got + string.len(chunk) 74 got = got + string.len(chunk)
75 -- not enough time for estimate 75 -- not enough time for estimate
76 if current - last > 1 then 76 if current - last > 1 then
77 io.stderr:write("\r", gauge(got, current - start, size)) 77 io.stderr:write("\r", gauge(got, current - start, size))