Clear RAM usage on stop.
This commit is contained in:
parent
86ea626dd5
commit
ce786ea70d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue