diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-19 16:06:44 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-19 16:06:44 +0000 |
commit | c3091371abf1cfb379a4033113f4a11b288029e1 (patch) | |
tree | ea529e2a5f563b4c4258e9a7ed517cb9ab96784b /pkg/sentry/usage/memory.go | |
parent | 703a6d02171403f91c407c3cadac00b28adfe15c (diff) | |
parent | c206fcbfc2b951a49798a1b84e9cd3c6097ffdca (diff) |
Merge release-20201005.0-98-gc206fcbfc (automated)
Diffstat (limited to 'pkg/sentry/usage/memory.go')
-rw-r--r-- | pkg/sentry/usage/memory.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/usage/memory.go b/pkg/sentry/usage/memory.go index ab1d140d2..5ed6726ab 100644 --- a/pkg/sentry/usage/memory.go +++ b/pkg/sentry/usage/memory.go @@ -278,7 +278,7 @@ func TotalMemory(memSize, used uint64) uint64 { } if memSize < used { memSize = used - // Bump totalSize to the next largest power of 2, if one exists, so + // Bump memSize to the next largest power of 2, if one exists, so // that MemFree isn't 0. if msb := bits.MostSignificantOne64(memSize); msb < 63 { memSize = uint64(1) << (uint(msb) + 1) |