gofmt: normalize internal/localapi (whitespace only)

Swept up by gofmt -w on the package while adding the guest-power observable. No
semantic change; 3 of 5 files are tests.
This commit is contained in:
2026-07-28 11:15:45 +02:00
parent f27f7a2659
commit 88b3cf03dd
5 changed files with 18 additions and 17 deletions
+3 -3
View File
@@ -134,9 +134,9 @@ func (s *Server) readMemoryBounds(ctx context.Context, vmid int) (memoryBounds,
return memoryBounds{}, fmt.Errorf("node status: %w", err)
}
b := memoryBounds{
allocatedMB: cfg.Memory, // PVE config memory is already MB
usageMB: bytesToMBUp(st.Mem), // bytes → MB, rounded up
hostTotalMB: node.Memory.Total / mib, // bytes → MB, floor (conservative for max)
allocatedMB: cfg.Memory, // PVE config memory is already MB
usageMB: bytesToMBUp(st.Mem), // bytes → MB, rounded up
hostTotalMB: node.Memory.Total / mib, // bytes → MB, floor (conservative for max)
minMB: minGuestMemoryMB,
running: st.Status == "running",
}