public function getSwapPercentUsed()
    {
        if ($this->getSwapTotal() !== null) {
            if ($this->getSwapTotal() > 0) {
                return round($this->getSwapUsed() / $this->getSwapTotal() * 100);
            } else {
                return 0;
            }
        } else {
            return null;
        }
    }
public function getSwapPercentUsed()
    {
        if ($this->getSwapTotal() !== null) {
            if ($this->getSwapTotal() > 0) {
                return round($this->getSwapUsed() / $this->getSwapTotal() * 100);
            } else {
                return 0;
            }
        } else {
            return null;
        }
    }
public function getSwapPercentUsed ( ) { if ( $ this -> getSwapTotal ( ) !== null ) { if ( $ this -> getSwapTotal ( ) > 0 ) { return round ( $ this -> getSwapUsed ( ) / $ this -> getSwapTotal ( ) * 100 ) ; } else { return 0 ; } } else { return null ; } }
return percent of total swap space used

@see System::getSwapUsed()
@see System::getSwapTotal()

@return Integer
return percent of total swap space used