print out a machine PB
This commit is contained in:
parent
d656828a0f
commit
9e49784b9e
|
@ -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)
|
||||||
|
}
|
Loading…
Reference in New Issue