[Bug] Fix disk TotalUsedPct display error (#6059)
Fix TotalUsedPct display error
This commit is contained in:
@ -78,7 +78,7 @@ public class BackendProcNode implements ProcNodeInterface {
|
||||
if (totalB <= 0) {
|
||||
used = 0.0;
|
||||
} else {
|
||||
used = (double) otherB * 100 / totalB;
|
||||
used = (double) (totalB - availB) * 100 / totalB;
|
||||
}
|
||||
info.add(String.format("%.2f", used) + " %");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user