public function getRAM()
    {

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

        // Give
        return array(
            'type' => 'Physical',
            'total' => $this->kstat['unix:0:system_pages:pagestotal'] * $this->kstat['unix:0:seg_cache:slab_size'],
            'free' => $this->kstat['unix:0:system_pages:pagesfree'] * $this->kstat['unix:0:seg_cache:slab_size'],
            'swapInfo' => [],
        );
    }
public function getRAM()
    {

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

        // Give
        return array(
            'type' => 'Physical',
            'total' => $this->kstat['unix:0:system_pages:pagestotal'] * $this->kstat['unix:0:seg_cache:slab_size'],
            'free' => $this->kstat['unix:0:system_pages:pagesfree'] * $this->kstat['unix:0:seg_cache:slab_size'],
            'swapInfo' => [],
        );
    }
public function getRAM ( ) { // Time? if ( ! empty ( $ this -> settings [ 'timer' ] ) ) { $ t = new Timer ( 'Memory' ) ; } // Give return array ( 'type' => 'Physical' , 'total' => $ this -> kstat [ 'unix:0:system_pages:pagestotal' ] * $ this -> kstat [ 'unix:0:seg_cache:slab_size' ] , 'free' => $ this -> kstat [ 'unix:0:system_pages:pagesfree' ] * $ this -> kstat [ 'unix:0:seg_cache:slab_size' ] , 'swapInfo' => [ ] , ) ; }
Get ram stats
Get ram stats