summaryrefslogtreecommitdiff
path: root/tools/merge_backup.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-11-25 00:47:13 +0100
committerLinus Nordberg <linus@nordu.net>2016-11-25 00:47:13 +0100
commit49b6e85963ef55fb6cfa1876fe825730f95658bc (patch)
treeb3f5c605d64c984a092a34c32b34305d4a3d687a /tools/merge_backup.py
parent19a2a611a839c0318f58347e2d93943c8e2401a5 (diff)
Parallelise merge_fetch.py.
NOTE: Not supporting permdb yet! We're still not passing the tests because merge_backup.py exits when the secondary merge disappears.
Diffstat (limited to 'tools/merge_backup.py')
-rwxr-xr-xtools/merge_backup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/merge_backup.py b/tools/merge_backup.py
index 723fc7a..32bae53 100755
--- a/tools/merge_backup.py
+++ b/tools/merge_backup.py
@@ -217,7 +217,7 @@ def main():
return err
fetched_statinfo_old = fetched_statinfo
while fetched_statinfo == fetched_statinfo_old:
- sleep(args.mergeinterval / 30)
+ sleep(max(3, args.mergeinterval / 10))
fetched_statinfo = stat(fetched_path)
return 0