Example #1
0
func osMemStatus() (Physical, Virtual MemoryStats) {
	var memstat C.mem_stats
	C.fbsd_get_mem_stats(&memstat)

	Physical.Free = uint64(memstat.free)
	Physical.Total = uint64(memstat.total)
	Physical.Used = Physical.Total - Physical.Free

	return
}
Example #2
0
func main() {
	var memstat C.mem_stats
	C.fbsd_get_mem_stats(&memstat)
}