Skip to content

Commit 39e9d26

Browse files
committed
fix: do not count uptime if crashed
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent 5ea0bdc commit 39e9d26

File tree

1 file changed

+1
-1
lines changed
  • apps/frontend/src/pages/servers/manage

1 file changed

+1
-1
lines changed

apps/frontend/src/pages/servers/manage/[id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ const updateStats = (currentStats: Stats["current"]) => {
601601
const updatePowerState = (state: ServerState) => {
602602
console.log("Power state:", state);
603603
serverPowerState.value = state;
604-
if (state === "stopped") {
604+
if (state === "stopped" || state === "crashed") {
605605
stopUptimeUpdates();
606606
uptimeSeconds.value = 0;
607607
}

0 commit comments

Comments
 (0)