Correction for getCpuUsage() function
Correction for getCpuUsage() function

When /proc/cpuinfo -> sibilings returns, e.g. 12 (my case), but really there are only "cpu" and "cpu0" in /proc/stat
I suggest to check $stat array element exists or not. If not checked, it causes "Undefined offset" notice, in some cases breaking cpu-stat query.
trntv/probe