package components
import (
"fmt"
"git.staur.ca/stobbsm/clustvirt/lib/host"
)
// HostInfo is meant to be an HTMX response
templ HostInfo(h *host.Host) {
@templ.Raw(h.ChartMemory())
- Free: { fmt.Sprintf("%d MB", h.NodeMemory.Free / 1024) }
- Cached: { fmt.Sprintf("%d MB", h.NodeMemory.Cached / 1024) }
- Buffers: { fmt.Sprintf("%d MB", h.NodeMemory.Buffers / 1024) }
- Total: { fmt.Sprintf("%d MB", h.NodeMemory.Total / 1024) }
}