check that swapTotal and phystTotal > 0 before calculating pct #353