move to codeberg (#10)

This commit is contained in:
T. von Dein
2025-11-13 21:30:44 +01:00
parent a115db60f6
commit fee8aaeed9
34 changed files with 220 additions and 147 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
}