[Bug] Fix disk TotalUsedPct display error (#6059)

Fix TotalUsedPct display error
This commit is contained in:
Zhengguo Yang
2021-06-20 16:15:39 +08:00
committed by GitHub
parent 5dabf0bef5
commit 5b2d07ca2f

View File

@ -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) + " %");