Indexer job frequency on the health page went to a variable

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-08-25 12:33:53 +02:00
parent c84bea9506
commit 321f64b33b
2 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@ $config['SITE_URL'] = 'http://piler.yourdomain.com/';
$config['EXTERNAL_DASHBOARD_URL'] = ''; $config['EXTERNAL_DASHBOARD_URL'] = '';
$config['SESSION_EXPIRY'] = 3600; $config['SESSION_EXPIRY'] = 3600;
$config['DELTA_INDEXER_PERIOD'] = 1800;
$config['ENABLE_SAAS'] = 0; $config['ENABLE_SAAS'] = 0;
$config['CAPTCHA_FAILED_LOGIN_COUNT'] = 0; $config['CAPTCHA_FAILED_LOGIN_COUNT'] = 0;

View File

@ -231,7 +231,7 @@ class ModelHealthHealth extends Model {
$st = stat(INDEXER_BEACON); $st = stat(INDEXER_BEACON);
$t1 = date(DATE_TEMPLATE . " H:i", $st['mtime']); $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); $data = array($t1, $t2);
} }