added build tags to files
This commit is contained in:
1 parent
71e4f1294e
commit
ea50417715
4 files changed
+14
-16
No files matched your search
@@ -1,3 +1,5 @@
|
||||
//go:build windows
|
||||
|
||||
package system_check
|
||||
|
||||
import (
|
||||
@@ -42,3 +44,7 @@ func getWinRamInfo(procGlobalMemoryStatusEx *windows.LazyProc) MemoryInformation
|
||||
AvailableMemory: mem.ullAvailPhys,
|
||||
}
|
||||
}
|
||||
|
||||
func GetRamInformation() (MemoryInformation, error) {
|
||||
return getWinRamInfo(getWindowsTools().ProcGlobalMemoryStatusEx), nil
|
||||
}
|
||||
Reference in new issue
Block a user