better handle skipped inventories
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-20 17:18:43 +11:00
parent 7ea02be91a
commit c8bb30c788
4 changed files with 32 additions and 14 deletions

View File

@@ -83,7 +83,8 @@ func (h *Handler) VmTrace(w http.ResponseWriter, r *http.Request) {
ts := time.Unix(lifecycle.CreationTime, 0).Local().Format("2006-01-02 15:04:05")
if lifecycle.CreationApprox {
creationLabel = fmt.Sprintf("%s (approx. earliest snapshot)", ts)
creationApprox = true
// dont double up on the approximate text
//creationApprox = true
} else {
creationLabel = ts
}