Changeset 5271

Show
Ignore:
Timestamp:
11/23/07 18:27:27 (1 year ago)
Author:
p_lindheimer
Message:

#2469 fix division my zero in cpu usage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/dashboard/module.xml

    r4889 r5271  
    22        <rawname>dashboard</rawname> 
    33        <name>System Dashboard</name> 
    4         <version>0.3.3.1</version> 
     4        <version>0.3.3.2</version> 
    55        <candisable>no</candisable> 
    66        <canuninstall>no</canuninstall> 
     
    1818        </depends> 
    1919        <changelog> 
     20                *0.3.3.2* #2469 fix division my zero in cpu usage 
    2021                *0.3.3.1* Cosmetic fix (#2278 - long mount point paths) 
    2122                *0.3.3* Improved detection of webserver failing, More MySQL detection fixes 
  • modules/branches/2.4/dashboard/phpsysinfo/class.Linux.inc.php

    r4523 r5271  
    133133        $load2 = $ab + $ac + $ad; 
    134134        $total2 = $ab + $ac + $ad + $ae; 
    135         $results['cpupercent'] = (100*($load2 - $load)) / ($total2 - $total)
     135        $results['cpupercent'] = ($total2 != $total)?((100*($load2 - $load)) / ($total2 - $total)):0
    136136      } 
    137137    } 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads