This commit is contained in:
brent s 2017-10-08 03:57:59 -04:00
parent a31a528e60
commit 54751f9753

View File

@ -204,7 +204,7 @@ def syncDB(args):
os.path.join(args['destdir'], '.'), os.path.join(args['destdir'], '.'),
args['rsync']] args['rsync']]
if args['throttle'] > 0.0: if args['throttle'] > 0.0:
cmd.insert(-1, '--bwlimit {0}'.format(str(args['throttle']))) cmd.insert(-1, '--bwlimit={0}'.format(str(args['throttle'])))
with open(args['logfile'], 'a') as f: with open(args['logfile'], 'a') as f:
f.write('===== {0} Rsyncing to mirror =====\n'.format(str(datetime.datetime.utcnow()))) f.write('===== {0} Rsyncing to mirror =====\n'.format(str(datetime.datetime.utcnow())))
with open(args['logfile'], 'a') as f: with open(args['logfile'], 'a') as f: