Skip to content

Commit

Permalink
Fix panic when meminfo couldn't be read
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Jul 12, 2016
1 parent 8f3be17 commit 5f7b1b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f7b1b6

Please sign in to comment.