Since I ever encountered dividing zero using above alorighm to calculate the cpu load, and I think it is also a good practice to have a check to safely ensure such an exception won't happen.