X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FWorker.php;h=d43d8c7281008198beac9b812ee9bd160fbf9d56;hb=d5373c583bc12d2104659aaf6386d2b9e28ec68d;hp=bdc184d2f1524c76ca92a172d4d6feda6c974d7e;hpb=63960bca05721179de50fe8ad8b21d34763f1c0d;p=friendica.git diff --git a/src/Core/Worker.php b/src/Core/Worker.php index bdc184d2f1..d43d8c7281 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1,6 +1,6 @@ UTC_TIMESTAMP() - INTERVAL ? MINUTE", $interval]); + $jobs = DBA::count('workerqueue', ["`done` AND `executed` > ?", DateTimeFormat::utc('now - ' . $interval . ' minute')]); self::$db_duration += (microtime(true) - $stamp); self::$db_duration_stat += (microtime(true) - $stamp); $jobs_per_minute[$interval] = number_format($jobs / $interval, 0); @@ -1183,7 +1183,7 @@ class Worker DBA::connect(); DI::flushLogger(); - $process = DI::process()->create(getmypid()); + $process = DI::process()->create(getmypid(), basename(__FILE__)); $cycles = 0; while (!self::IPCJobsExists($process->pid) && (++$cycles < 100)) {