1
0
Fork 0

Fix: Corected config value name

This commit is contained in:
Michael 2019-02-11 04:39:24 +00:00
commit 5fc6c0ef38
2 changed files with 8 additions and 2 deletions

View file

@ -718,6 +718,12 @@ class Worker
$intervals = explode(',', Config::get('system', 'worker_jpm_range'));
$jobs_per_minute = [];
foreach ($intervals as $interval) {
if ($interval == 0) {
continue;
} else {
$interval = (int)$interval;
}
$stamp = (float)microtime(true);
$jobs = DBA::p("SELECT COUNT(*) AS `jobs` FROM `workerqueue` WHERE `done` AND `executed` > UTC_TIMESTAMP() - INTERVAL ? MINUTE", $interval);
self::$db_duration += (microtime(true) - $stamp);