1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix panic when meminfo couldn't be read

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2016-07-12 15:30:21 -04:00
parent 8f3be176d2
commit 5f7b1b604c

View file

@ -51,6 +51,7 @@ func (daemon *Daemon) SystemInfo() (*types.Info, error) {
meminfo, err := system.ReadMemInfo()
if err != nil {
logrus.Errorf("Could not read system memory info: %v", err)
meminfo = &system.MemInfo{}
}
sysInfo := sysinfo.New(true)