Clear RAM usage on stop.

This commit is contained in:
Michael Lipp 2023-09-14 19:03:45 +02:00
parent 86ea626dd5
commit ce786ea70d

View file

@ -223,6 +223,8 @@ public class StatusUpdater extends Component {
if (event.state() == State.STARTING) {
status.addProperty("ram", GsonPtr.to(from.getRaw())
.getAsString("spec", "vm", "maximumRam").orElse("0"));
} else if (event.state() == State.STOPPED) {
status.addProperty("ram", "0");
}
return status;
});