Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2975 → Rev 2976

/web/acc/phpsysinfo/includes/to/device/class.DiskDevice.inc.php
77,7 → 77,7
/**
* inodes usage in percent if available
*
* @var
* @var Integer
*/
private $_percentInodesUsed = null;
 
84,7 → 84,7
/**
* ignore mode
*
* @var Ignore
* @var Integer
*/
private $_ignore = 0;
 
99,7 → 99,7
public function getPercentUsed()
{
if ($this->_total > 0) {
return round($this->_used / $this->_total * 100);
return 100 - min(floor($this->_free / $this->_total * 100), 100);
} else {
return 0;
}