Fix use of "2 ^ 30".

2 ^ 30 is 28, not 1073741824.
This commit is contained in:
Josh Gao
2019-06-13 14:26:26 -07:00
parent 9f77b36fa1
commit b915a25597
+1 -1
View File
@@ -259,7 +259,7 @@ func New(args Args) (*Loader, error) {
// Adjust the total memory returned by the Sentry so that applications that
// use /proc/meminfo can make allocations based on this limit.
usage.MinimumTotalMemoryBytes = args.TotalMem
log.Infof("Setting total memory to %.2f GB", float64(args.TotalMem)/(2^30))
log.Infof("Setting total memory to %.2f GB", float64(args.TotalMem)/(1 << 30))
}
// Initiate the Kernel object, which is required by the Context passed