Testing for linux cpuinfo
This commit is contained in:
1 parent
cbc9e4a0b4
commit
ea5e79a46a
8 files changed
+172
-20
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user