change the error log for empty resource usage

This commit is contained in:
Zhou Fang 2016-09-15 14:13:25 -07:00
parent 0877816ec8
commit 3e16eb5082

View File

@ -192,7 +192,7 @@ func (r *ResourceCollector) GetLatest() (framework.ResourceUsagePerContainer, er
for key, name := range systemContainers {
contStats, ok := r.buffers[name]
if !ok || len(contStats) == 0 {
return nil, fmt.Errorf("Resource usage of %s:%s is not ready yet", key, name)
return nil, fmt.Errorf("No resource usage data for %s container (%s)", key, name)
}
stats[key] = contStats[len(contStats)-1]
}