Commit Diff
Diff:
ffd6f34769f969afd4dab4e940bb6e5d7af0e6da
cfe99b901e4f3656cfbef4122ccb54b76c2a1400
Commit:
cfe99b901e4f3656cfbef4122ccb54b76c2a1400
Tree:
2f6376b7d9144c6d9107a411ad855e85926b8960
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Sun Nov 3 15:47:41 2019 UTC
Message:
switch the replication engines sleep granularity from 10 seconds to 1 second. it will only start processing a lot more when there is a scheduled job, to determine if there is a scheduled job it will run through a LIST, and does this every second. I watched it for a bit, it doesn't take up much cycles.
blob - 35224b17e2952330c9c99d30e3d6adb722073c35
blob + 32d425da3e8824050fd64de55fa36b32cdaa00c0
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.21 2019/11/03 15:21:19 pjp Exp $
+ * $Id: raxfr.c,v 1.22 2019/11/03 15:47:41 pjp Exp $
*/
#include <sys/types.h>
@@ -1323,7 +1323,7 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf, struct i
tv.tv_sec = 0;
tv.tv_usec = 5000;
} else {
- tv.tv_sec = 10;
+ tv.tv_sec = 1;
tv.tv_usec = 0;
}
repomaster@centroid.eu