mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
@@ -36,7 +36,7 @@ func GetInfo(path string) (info Info, err error) {
|
||||
Free: uint64(s.Frsize) * s.Bavail,
|
||||
Files: s.Files,
|
||||
Ffree: s.Ffree,
|
||||
FSType: getFSType(s.Type),
|
||||
FSType: getFSType(int64(s.Type)),
|
||||
}
|
||||
// Check for overflows.
|
||||
// https://github.com/minio/minio/issues/8035
|
||||
|
||||
@@ -69,7 +69,7 @@ func getSysinfoMemoryLimit() (limit uint64, err error) {
|
||||
|
||||
// Total RAM is always the multiplicative value
|
||||
// of unit size and total ram.
|
||||
return uint64(unit) * totalRAM, nil
|
||||
return uint64(unit) * uint64(totalRAM), nil
|
||||
}
|
||||
|
||||
// GetStats - return system statistics, currently only
|
||||
|
||||
Reference in New Issue
Block a user