// +build linux

package memory

import 

func sysTotalMemory() uint64 {
	 := &syscall.Sysinfo_t{}
	 := syscall.Sysinfo()
	if  != nil {
		return 0
	}
	// If this is a 32-bit system, then these fields are
	// uint32 instead of uint64.
	// So we always convert to uint64 to match signature.
	return uint64(.Totalram) * uint64(.Unit)
}

func sysFreeMemory() uint64 {
	 := &syscall.Sysinfo_t{}
	 := syscall.Sysinfo()
	if  != nil {
		return 0
	}
	// If this is a 32-bit system, then these fields are
	// uint32 instead of uint64.
	// So we always convert to uint64 to match signature.
	return uint64(.Freeram) * uint64(.Unit)
}