Commit 2fdebf6a authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Remove useless test.

parent 34b89a97
Showing with 1 addition and 2 deletions
+1 -2
......@@ -217,8 +217,7 @@ static double getProcBatData() {
if (totalRemain == 0)
return 0;
double percent = totalFull > 0 ? ((double) totalRemain * 100) / (double) totalFull : 0;
return percent;
return totalRemain * 100.0 / (double) totalFull;
}
static double getSysBatData() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment