X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FWorker.php;h=d43d8c7281008198beac9b812ee9bd160fbf9d56;hb=7b68a5956e831fdb32d99b6840654dc050cf3c63;hp=a4f14a48c48ee4bef9da96a262ecc17150528441;hpb=a7487ee50da6c469130afdfbb2321c5bf38f0e48;p=friendica.git diff --git a/src/Core/Worker.php b/src/Core/Worker.php index a4f14a48c4..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)) {