segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

syscall.Sysinfo returns an uint32 on linux/arm, but uint64 otherwise #151

Closed noctarius closed 1 year ago

noctarius commented 1 year ago

Seems like the syscall result isn't the same between arm (32bit) and arm64. Totalram can be an uint32. Instead of creating an additional build constraint, I just added the cast which will be removed when unnecessary, but stays in place when required.

extemporalgenome commented 1 year ago

Thanks!