package view import ( "fmt" "git.staur.ca/stobbsm/clustvirt/cluster" "git.staur.ca/stobbsm/clustvirt/view/components" "git.staur.ca/stobbsm/clustvirt/view/layouts" ) templ ClusterInfo(cs *cluster.ClusterStats, diff cluster.StatDiff, navbar []components.NavItem) { @layouts.Manager("ClustVirt", "Cluster Manager", navbar) {

Cluster Stats

@CPUStats(cs, diff) } } templ CPUStats(cs *cluster.ClusterStats, diff cluster.StatDiff) {
CPU stats
Sockets Cores Threads Allocated
Latest { fmt.Sprint(cs.CPU.Sockets) } { fmt.Sprint(cs.CPU.Cores) } { fmt.Sprint(cs.CPU.Threads) } { fmt.Sprint(cs.CPU.Allocated) }
Change { fmt.Sprint(diff.CPU.Sockets) } { fmt.Sprint(diff.CPU.Cores) } { fmt.Sprint(diff.CPU.Threads) } { fmt.Sprint(diff.CPU.Allocated) }
}