Commit e12a962d authored by yutao's avatar yutao

init

parent 4ac6af4f
Pipeline #727 failed with stages
...@@ -107,16 +107,16 @@ public class DashBoardTest2 { ...@@ -107,16 +107,16 @@ public class DashBoardTest2 {
String memoryUsage =Math.round(usagePercent) +"%"; String memoryUsage =Math.round(usagePercent) +"%";
String used=(total-available)+"G"; String used=(total-available)+"G";
String size=total+"G"; String size=total+"G";
String freee=available+"G"; String free=available+"G";
return Map.of( return Map.of(
"used",used, "used",used,
"size",size, "size",size,
"freee",freee, "free",free,
"memoryUsage",memoryUsage "memoryUsage",memoryUsage
); );
} }
private static double parseSizeToGB(String size) { private static double parseSizeToGB(String size) {
double value = 0; double value ;
if (size.endsWith("G")) { if (size.endsWith("G")) {
value = Double.parseDouble(size.replace("G", "")); value = Double.parseDouble(size.replace("G", ""));
} else if (size.endsWith("M")) { } else if (size.endsWith("M")) {
......
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