summaryrefslogtreecommitdiff
path: root/sampleData.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-22 04:26:29 -0500
committerJeff Carr <[email protected]>2024-10-22 04:26:29 -0500
commitca0d4f423a7892f582eced971a31caab1add9c02 (patch)
treed56c015247d81b7b4cb7cba595b7c875b3cb49cd /sampleData.go
parente256f02cf8caf7459269ebdba90c43936feb60bd (diff)
experiements
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'sampleData.go')
-rw-r--r--sampleData.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/sampleData.go b/sampleData.go
index 806e1f9..03af6ab 100644
--- a/sampleData.go
+++ b/sampleData.go
@@ -31,11 +31,11 @@ func CreateSampleHypervisor(hostname string, mem int) *Hypervisor {
h := &Hypervisor{
Uuid: id.String(),
Hostname: hostname,
- Cpus: 16,
- Memory: 256,
+ Cpus: 16,
+ Memory: 256,
Comment: "this is a fake hypervisor",
}
- h.SetMemory(mem * 32)
+ h.SetMemoryGB(mem * 32)
return h
}
@@ -54,7 +54,7 @@ func CreateSampleCluster(total int) *Cluster {
for i := 0; i < 3; i++ {
hostname := fmt.Sprintf("farm%d", i)
- h := CreateSampleHypervisor(hostname, i + 1)
+ h := CreateSampleHypervisor(hostname, i+1)
h.Comment = fmt.Sprintf("Sample hypervisor %d", i)
c.Hypervisors = append(c.Hypervisors, h)