mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Remove useless test.
This commit is contained in:
parent
34b89a9747
commit
2fdebf6a29
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user