diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /samples/get.lua | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rw-r--r-- | samples/get.lua (renamed from etc/get.lua) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/get.lua b/samples/get.lua index 9edc235..d53c465 100644 --- a/etc/get.lua +++ b/samples/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)) |