summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-22 01:51:12 -0500
committerJeff Carr <[email protected]>2025-09-22 01:51:12 -0500
commit9e49784b9e375b234e37befe950d1ce0f39bd1b4 (patch)
tree9a7b9cdcc4de56ac938bfd0f04560a8dd021cc25
parentd656828a0f210561020a7ae742041d19cc44b624 (diff)
print out a machine PBv0.0.63
-rw-r--r--print.go13
1 files changed, 13 insertions, 0 deletions
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)
+}