Skip to content

Commit

Permalink
Merge pull request kubernetes#25740 from gmarek/gatherer
Browse files Browse the repository at this point in the history
Prevent division by 0 error in resource-gatherer
  • Loading branch information
wojtek-t committed May 17, 2016
2 parents 1738bbf + 0848ad2 commit 9990f84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/framework/resource_usage_gatherer.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ func getKubemarkMasterComponentsResourceUsage() ResourceUsagePerContainer {
}

func (g *containerResourceGatherer) getKubeSystemContainersResourceUsage(c *client.Client) {
if len(g.workers) == 0 {
return
}
delayPeriod := resourceDataGatheringPeriod / time.Duration(len(g.workers))
delay := time.Duration(0)
for i := range g.workers {
Expand Down

0 comments on commit 9990f84

Please sign in to comment.