1
0
Fork 0

Minimal poll intervall

This commit is contained in:
Michael 2017-05-24 08:21:05 +00:00
commit d2dd0b3248
3 changed files with 9 additions and 9 deletions

View file

@ -122,6 +122,8 @@ function cron_poll_contacts($argc, $argv) {
$force = true;
}
$min_poll_interval = Config::get('system', 'min_poll_interval', 1);
$sql_extra = (($manual_id) ? " AND `id` = $manual_id " : "");
reload_plugins();
@ -231,7 +233,7 @@ function cron_poll_contacts($argc, $argv) {
break;
case 0:
default:
if (datetime_convert('UTC', 'UTC', 'now') > datetime_convert('UTC', 'UTC', $t . " + 15 minute")) {
if (datetime_convert('UTC', 'UTC', 'now') > datetime_convert('UTC', 'UTC', $t . " + ".$min_poll_interval." minute")) {
$update = true;
}
break;