14 lines
365 B
Go
14 lines
365 B
Go
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)
|
|
}
|