public function getJobInfo($Job) : void
    {
        $uptimeSeconds = time() - $this->startupTime;
        $uptimeSeconds = ($uptimeSeconds === 0) ? 1 : $uptimeSeconds;
        $avgJobsMin = $this->jobsTotal / ($uptimeSeconds / 60);
        $avgJobsMin = round($avgJobsMin, 2);
        $response = [
            'jobs_total' => $this->jobsTotal,
            'avg_jobs_min' => $avgJobsMin,
            'uptime_seconds' => $uptimeSeconds,
        ];
        $Job->sendData(json_encode($response));
    }
public function getJobInfo($Job) : void
    {
        $uptimeSeconds = time() - $this->startupTime;
        $uptimeSeconds = ($uptimeSeconds === 0) ? 1 : $uptimeSeconds;
        $avgJobsMin = $this->jobsTotal / ($uptimeSeconds / 60);
        $avgJobsMin = round($avgJobsMin, 2);
        $response = [
            'jobs_total' => $this->jobsTotal,
            'avg_jobs_min' => $avgJobsMin,
            'uptime_seconds' => $uptimeSeconds,
        ];
        $Job->sendData(json_encode($response));
    }
public function getJobInfo ( $ Job ) : void { $ uptimeSeconds = time ( ) - $ this -> startupTime ; $ uptimeSeconds = ( $ uptimeSeconds === 0 ) ? 1 : $ uptimeSeconds ; $ avgJobsMin = $ this -> jobsTotal / ( $ uptimeSeconds / 60 ) ; $ avgJobsMin = round ( $ avgJobsMin , 2 ) ; $ response = [ 'jobs_total' => $ this -> jobsTotal , 'avg_jobs_min' => $ avgJobsMin , 'uptime_seconds' => $ uptimeSeconds , ] ; $ Job -> sendData ( json_encode ( $ response ) ) ; }
Returns information about jobs handled.

@param \GearmanJob $Job
@return void
Returns information about jobs handled .