1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

Support 32-bit linux, this field is int32 on 32-bit systems

This commit is contained in:
Cameron Sparr 2015-09-17 14:45:28 -07:00
parent 9c0474c2a7
commit 389d17e8a0

View File

@ -318,7 +318,7 @@ func GetDiskSerialNumber(name string) string {
}
func getFsType(stat syscall.Statfs_t) string {
t := stat.Type
t := int64(stat.Type)
ret, ok := fsTypeMap[t]
if !ok {
return ""