lib/ur: Normalise contract between syncthing and ursrv (#6770)
* Fix ui, hide report date * Undo Goland madness * UR now web scale * Fix migration * Fix marshaling, force tick on start * Fix tests * Darwin build * Split "all" build target, add package name as a tag * Remove pq and sql dep from syncthing, split build targets * Empty line * Revert "Empty line" This reverts commitf74af2b067. * Revert "Remove pq and sql dep from syncthing, split build targets" This reverts commit8fc295ad00. * Revert "Split "all" build target, add package name as a tag" This reverts commitf4dc889951. * Normalise contract types * Fix build add more logging
This commit is contained in:
@@ -8,7 +8,10 @@ package ur
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
func memorySize() (int64, error) {
|
||||
func memorySize() int64 {
|
||||
mem, err := unix.SysctlUint64("hw.memsize")
|
||||
return int64(mem), err
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
return int64(mem)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user