Adding timeout to default.rsync

This commit is contained in:
Kashyap Paidimarri 2013-03-19 12:55:29 +05:30
parent c13af5df7e
commit 769fb3c26b
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,7 @@ rsync.checkgauge = {
rsync_path = true,
sparse = true,
temp_dir = true,
timeout = true,
times = true,
update = true,
verbose = true,
@ -481,6 +482,11 @@ rsync.prepare = function(
computedN = computedN + 1
end
if crsync.timeout then
computed[ computedN ] = '--timeout=' .. crsync.timeout
computedN = computedN + 1
end
if shortsN ~= 2 then
computed[ 1 ] = table.concat( shorts, '' )
else