public function getSwapTotal()
    {
        if (count($this->_swapDevices) > 0) {
            $total = 0;
            foreach ($this->_swapDevices as $dev) {
                $total += $dev->getTotal();
            }

            return $total;
        } else {
            return null;
        }
    }
public function getSwapTotal()
    {
        if (count($this->_swapDevices) > 0) {
            $total = 0;
            foreach ($this->_swapDevices as $dev) {
                $total += $dev->getTotal();
            }

            return $total;
        } else {
            return null;
        }
    }
public function getSwapTotal ( ) { if ( count ( $ this -> _swapDevices ) > 0 ) { $ total = 0 ; foreach ( $ this -> _swapDevices as $ dev ) { $ total += $ dev -> getTotal ( ) ; } return $ total ; } else { return null ; } }
Returns total swap space

@see System::_swapDevices
@see DiskDevice::getTotal()

@return Integer
Returns total swap space