Merge pull request #79 from influxdb/disk-linux-32bit
Support 32-bit linux, this field is int32 on 32-bit systems
This commit is contained in:
commit
a369a8857c
|
@ -318,7 +318,7 @@ func GetDiskSerialNumber(name string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getFsType(stat syscall.Statfs_t) string {
|
func getFsType(stat syscall.Statfs_t) string {
|
||||||
t := stat.Type
|
t := int64(stat.Type)
|
||||||
ret, ok := fsTypeMap[t]
|
ret, ok := fsTypeMap[t]
|
||||||
if !ok {
|
if !ok {
|
||||||
return ""
|
return ""
|
||||||
|
|
Loading…
Reference in New Issue