summaryrefslogtreecommitdiff
path: root/source/a/dcron/dcron.update.during.long.running.jobs.diff
blob: cd1297c73c2dba84e1ca5cc74c2f643e301134ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 Update main.c

Removed bug where cron.update is not picked up while jobs are still running. (We have long running cronjobs and experienced long overdue cron.update files)

diff --git a/main.c b/main.c
index 595f07a..0eba280 100644
--- a/main.c
+++ b/main.c
@@ -338,7 +338,8 @@ main(int ac, char **av)
 					SynchronizeDir(SCDir, "root", 0);
 					ReadTimestamps(NULL);
 				}
-			} else {
+			} 
+			if (rescan < 60) {
 				CheckUpdates(CDir, NULL, t1, t2);
 				CheckUpdates(SCDir, "root", t1, t2);
 			}