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

Remove useless test.

parent 34b89a97
...@@ -217,8 +217,7 @@ static double getProcBatData() { ...@@ -217,8 +217,7 @@ static double getProcBatData() {
if (totalRemain == 0) if (totalRemain == 0)
return 0; return 0;
double percent = totalFull > 0 ? ((double) totalRemain * 100) / (double) totalFull : 0; return totalRemain * 100.0 / (double) totalFull;
return percent;
} }
static double getSysBatData() { 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