error when GetStats() return nil, nil
This commit is contained in:
parent
90fc23fe61
commit
30baa98167
@ -63,10 +63,8 @@ func (self *percentilesContainerHandlerWrapper) GetStats() (*info.ContainerStats
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// nil stats and nil error is possible for /docker container.
|
||||
if stats == nil {
|
||||
// return nil, fmt.Errorf("container handler returns a nil error and a nil stats")
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("container handler returns a nil error and a nil stats")
|
||||
}
|
||||
if stats.Timestamp.IsZero() {
|
||||
return nil, fmt.Errorf("container handler did not set timestamp")
|
||||
|
Loading…
Reference in New Issue
Block a user