diff --git a/print.go b/print.go new file mode 100644 index 0000000..a5f0092 --- /dev/null +++ b/print.go @@ -0,0 +1,13 @@ +package zoopb + +import "go.wit.com/log" + +// init the installed package list +func (m *Machine) Dump() { + log.Infof("mem=%d cpus=%d\n", m.Memory, m.Cpus) + + // totalMemGB := float64(sysInfo.Totalram) * float64(sysInfo.Unit) / (1024 * 1024 * 1024) + // Print results + // fmt.Printf("Total Memory: %.2f GB\n", totalMemGB) + // fmt.Printf("Number of CPUs: %d\n", numCPUs) +}