Changeset 5271 for modules/branches/2.4/dashboard/phpsysinfo
- Timestamp:
- 11/23/07 21:27:27 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/dashboard/phpsysinfo/class.Linux.inc.php
r4523 r5271 133 133 $load2 = $ab + $ac + $ad; 134 134 $total2 = $ab + $ac + $ad + $ae; 135 $results['cpupercent'] = ( 100*($load2 - $load)) / ($total2 - $total);135 $results['cpupercent'] = ($total2 != $total)?((100*($load2 - $load)) / ($total2 - $total)):0; 136 136 } 137 137 }
