rm print to stdout
This commit is contained in:
parent
58790a760d
commit
ab4f0b7ee3
6
apt.go
6
apt.go
|
@ -53,12 +53,12 @@ func (me *Machine) getMemory() {
|
|||
}
|
||||
|
||||
// Convert memory from bytes to GB
|
||||
totalMemGB := float64(sysInfo.Totalram) * float64(sysInfo.Unit) / (1024 * 1024 * 1024)
|
||||
m := float64(sysInfo.Totalram) * float64(sysInfo.Unit)
|
||||
me.Memory = int64(m)
|
||||
me.Cpus = int64(numCPUs)
|
||||
|
||||
// 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)
|
||||
// fmt.Printf("Total Memory: %.2f GB\n", totalMemGB)
|
||||
// fmt.Printf("Number of CPUs: %d\n", numCPUs)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue