mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-23 12:53:43 +00:00
build(release): Ignore unsupported platform architecture combinations
fix(tuning): Fix type conversion issue in memory calculation
This commit is contained in:
@@ -24,6 +24,15 @@ builds:
|
||||
gomips:
|
||||
- hardfloat
|
||||
- softfloat
|
||||
ignore:
|
||||
- goos: windows
|
||||
goarch: arm
|
||||
- goos: darwin
|
||||
goarch: "386"
|
||||
- goos: darwin
|
||||
goarch: arm
|
||||
- goos: freebsd
|
||||
goarch: arm64
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
|
||||
@@ -7,7 +7,7 @@ import "syscall"
|
||||
func getSystemTotalMemory() uint64 {
|
||||
var info syscall.Sysinfo_t
|
||||
if err := syscall.Sysinfo(&info); err == nil {
|
||||
return info.Totalram * uint64(info.Unit)
|
||||
return uint64(info.Totalram) * uint64(info.Unit)
|
||||
}
|
||||
return 1024 * 1024 * 1024
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user