install page: say when the host has too little swap behind the guest (R-1192 follow-up); restore record log says when a cut restore was put back; unreleased
gates / gates (push) Successful in 1m36s

This commit is contained in:
2026-10-21 22:11:16 +02:00
parent d582feb245
commit 37b79caad9
11 changed files with 78 additions and 6 deletions
+5
View File
@@ -720,6 +720,11 @@ func (s *Server) deployPageData(w http.ResponseWriter, r *http.Request, name str
memInfo["UsedPercent"] = usedPercent
memInfo["Blocked"] = newReqMB > 0 && afterMB > usableMB
memInfo["OvercommitWarn"] = newLimitMB > 0 && afterLimitMB > totalMB
// R-1192 follow-up: when memory is tight, say so if the HOST has too little swap behind the guest — the
// guest swap fix then has nothing to give, and a big upload can freeze the box.
if memInfo["OvercommitWarn"] == true {
memInfo["SwapShort"] = s.hostSwapShort()
}
}
data["MemoryInfo"] = memInfo
}