forked from Mirrors/minio
Fix max cache size calculation when system RAM is inferior to the default cache size (#3410)
This commit is contained in:
committed by
Harshavardhana
parent
5c9a95df32
commit
0cef971832
@@ -77,7 +77,7 @@ func setMaxMemory() error {
|
||||
return err
|
||||
}
|
||||
if err == nil && stats.TotalRAM < globalMaxCacheSize {
|
||||
globalMaxCacheSize = (80 / 100) * stats.TotalRAM
|
||||
globalMaxCacheSize = uint64(float64(80*stats.TotalRAM) / 100)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user