From 321f64b33ba9528b0b51564e94eb5b18eb975ac3 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 25 Aug 2019 12:33:53 +0200 Subject: [PATCH] Indexer job frequency on the health page went to a variable Signed-off-by: Janos SUTO --- config.php.in | 1 + webui/model/health/health.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.php.in b/config.php.in index 8f33fb7d..ff2a749f 100644 --- a/config.php.in +++ b/config.php.in @@ -40,6 +40,7 @@ $config['SITE_URL'] = 'http://piler.yourdomain.com/'; $config['EXTERNAL_DASHBOARD_URL'] = ''; $config['SESSION_EXPIRY'] = 3600; +$config['DELTA_INDEXER_PERIOD'] = 1800; $config['ENABLE_SAAS'] = 0; $config['CAPTCHA_FAILED_LOGIN_COUNT'] = 0; diff --git a/webui/model/health/health.php b/webui/model/health/health.php index 738cdf76..5867e561 100644 --- a/webui/model/health/health.php +++ b/webui/model/health/health.php @@ -231,7 +231,7 @@ class ModelHealthHealth extends Model { $st = stat(INDEXER_BEACON); $t1 = date(DATE_TEMPLATE . " H:i", $st['mtime']); - $t2 = date(DATE_TEMPLATE . " H:i", $st['mtime']+30*60); + $t2 = date(DATE_TEMPLATE . " H:i", $st['mtime']+DELTA_INDEXER_PERIOD); $data = array($t1, $t2); }