83b5dc03eb
requests, default to the previous 60-seconds scheduling method unless there is any @every_second entries to conserve CPU cycles and power. This change also improves scheduling in the default mode by running as close to the beginning of the minnute as possible by replacing sleep(3) with nanosleep(2). Previously, the tasks would run anywhere within the first second of the minute and that offset drifted back and forth each time cron(8) was engaged. MFC after: 1 month |
||
---|---|---|
.. | ||
compat.h | ||
config.h | ||
cron.8 | ||
cron.c | ||
cron.h | ||
database.c | ||
do_command.c | ||
externs.h | ||
job.c | ||
Makefile | ||
pathnames.h | ||
popen.c | ||
user.c |