repackage code to cmd

This commit is contained in:
2025-11-13 20:11:00 +01:00
parent 0989fdb3cc
commit f0068f0905
29 changed files with 118 additions and 128 deletions

11
cmd/system.go Normal file
View File

@@ -0,0 +1,11 @@
package cmd
import "runtime"
// returns current memory usage in MB
func GetMem() float64 {
var m runtime.MemStats
runtime.ReadMemStats(&m)
return float64(m.Alloc) / 1024 / 1024
}