elastix2.3 dashboard 无交换空间时 不显示 bug 补丁

elastix2.3 dashboard 无交换空间时 不显示 bug 补丁

paloSantoDataApplets.class.php  416行
//SWAP USAGE
 if($arrSysInfo['SwapTotal']==0){
  $swap_usage_val = number_format(0.0,1);
 }
 else{
  $swap_usage_val = number_format(100.0 * ($arrSysInfo['SwapTotal'] - $arrSysInfo['SwapFree'])/$arrSysInfo['SwapTotal'], 1);
}
paloSantoSysInfo.class.php 157行
        if($this->arrSysInfo['SwapTotal']==0)
        {
                $value = 0;
        }
        else
        {
                $value = ($this->arrSysInfo['SwapTotal'] - $this->arrSysInfo['SwapFree'])/$this->arrSysInfo['SwapTotal'];
        }

你可能感兴趣的:(elastix2.3 dashboard 无交换空间时 不显示 bug 补丁)