diff options
author | Josh Gao <jmgao@google.com> | 2019-06-13 14:26:26 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2019-06-13 14:26:26 -0700 |
commit | b915a25597a961311ceb57f89d18eaee9c9461d8 (patch) | |
tree | 56ee900de4d3c177594e32e59a152b64f811d075 | |
parent | 9f77b36fa100761eb3eabbb87f5111419202a9d5 (diff) |
Fix use of "2 ^ 30".
2 ^ 30 is 28, not 1073741824.
-rw-r--r-- | runsc/boot/loader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index c1dea736f..b2a91bec9 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -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 |