mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Remove useless test.
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user