CpuLoad = 0.5; $thisServer->CpuUsagePercent = 12.34; check('load with stats', $load(), 'Load: 0.50'); check('cpu with stats', $cpu(), 'Cpu: 12.3%'); $thisServer->CpuLoad = 0; $thisServer->CpuUsagePercent = 0; check('an idle load of zero is a real value', $load(), 'Load: 0.00'); check('an idle cpu of zero is a real value', $cpu(), 'Cpu: 0.0%'); echo "\n$passes passed, $failures failed\n"; exit($failures ? 1 : 0);