Merge pull request #375 from jmgao:master

PiperOrigin-RevId: 257041876
This commit is contained in:
gVisor bot 2019-07-08 13:41:00 -07:00
commit c2cebbc8da
2 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,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

View File

@ -231,6 +231,7 @@ void TestInit(int* argc, char*** argv) {
sa.sa_handler = SIG_IGN;
TEST_CHECK(sigaction(SIGPIPE, &sa, nullptr) == 0);
}
gvisor:case-end
} // namespace testing
} // namespace gvisor