summaryrefslogtreecommitdiff
path: root/apt.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 12:18:07 -0600
committerJeff Carr <[email protected]>2025-02-15 12:21:39 -0600
commit9c17d8b92fd8798f12e0757588443e386490eefc (patch)
treeaf4942f611e2cc469958ca4ddb18ae9b18cb0412 /apt.go
parent58790a760df71de9ee206e86533360b92f2d0d4c (diff)
rm print to stdoutv0.0.28v0.0.27
Diffstat (limited to 'apt.go')
-rw-r--r--apt.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt.go b/apt.go
index 8ba299e..65eb8e9 100644
--- a/apt.go
+++ b/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)
}