Few adjustments for windows.
This commit is contained in:
parent
71f6bb60bf
commit
bd54cd42d4
3 changed files with 6 additions and 6 deletions
|
@ -63,13 +63,13 @@ end
|
|||
-- kind of copied from luasocket's manual callback examples
|
||||
function receive2disk(file, size)
|
||||
local aux = {
|
||||
start = socket._time(),
|
||||
start = socket.time(),
|
||||
got = 0,
|
||||
file = io.open(file, "wb"),
|
||||
size = size
|
||||
}
|
||||
local receive_cb = function(chunk, err)
|
||||
local dt = socket._time() - aux.start -- elapsed time since start
|
||||
local dt = socket.time() - aux.start -- elapsed time since start
|
||||
if not chunk or chunk == "" then
|
||||
io.write("\n")
|
||||
aux.file:close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue