From 9e49784b9e375b234e37befe950d1ce0f39bd1b4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 22 Sep 2025 01:51:12 -0500 Subject: [PATCH] print out a machine PB --- print.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 print.go 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) +}