public function getCPU()
    {

        // Time?
        if (!empty($this->settings['timer'])) {
            $t = new Timer('CPUs');
        }

        // Store them here
        $cpus = [];

        // Stuff it with identical cpus
        for ($i = 0; $i < $this->sysctl['hw.ncpu']; ++$i) {

            // Save each
            $cpus[] = array(
                'Model' => $this->sysctl['hw.model'],
                'MHz' => $this->sysctl['hw.clockrate'],
            );
        }

        // Return
        return $cpus;
    }
public function getCPU()
    {

        // Time?
        if (!empty($this->settings['timer'])) {
            $t = new Timer('CPUs');
        }

        // Store them here
        $cpus = [];

        // Stuff it with identical cpus
        for ($i = 0; $i < $this->sysctl['hw.ncpu']; ++$i) {

            // Save each
            $cpus[] = array(
                'Model' => $this->sysctl['hw.model'],
                'MHz' => $this->sysctl['hw.clockrate'],
            );
        }

        // Return
        return $cpus;
    }
public function getCPU ( ) { // Time? if ( ! empty ( $ this -> settings [ 'timer' ] ) ) { $ t = new Timer ( 'CPUs' ) ; } // Store them here $ cpus = [ ] ; // Stuff it with identical cpus for ( $ i = 0 ; $ i < $ this -> sysctl [ 'hw.ncpu' ] ; ++ $ i ) { // Save each $ cpus [ ] = array ( 'Model' => $ this -> sysctl [ 'hw.model' ] , 'MHz' => $ this -> sysctl [ 'hw.clockrate' ] , ) ; } // Return return $ cpus ; }
I still don't really like how this is done
I still don t really like how this is done