Files
rpi5-health/internal/memory/ram.go
T
2026-10-05 18:19:36 +02:00

17 lines
325 B
Go

package memory
type MemoryInformation struct {
/*
* The total amount of memory the system has available
*/
SystemMemory uint64
/*
* How much memory is currently unused
*/
AvailableMemory uint64
}
func (memInfo MemoryInformation) GetUsedMemory() uint64 {
return memInfo.SystemMemory - memInfo.AvailableMemory
}