Skip to content

Commit

Permalink
Address comments for issue506
Browse files Browse the repository at this point in the history
  • Loading branch information
liwenwu-amazon committed Jan 11, 2017
1 parent 4a7798f commit 6d41ad1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agent/stats/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ func (engine *DockerStatsEngine) getContainerMetricsForTask(taskArn string) ([]*
continue
}

if !container.statsQueue.resetThresholdElapsed(queueResetThreshold) &&
!container.statsQueue.enoughDatapointsInBuffer() {
if !container.statsQueue.enoughDatapointsInBuffer() &&
!container.statsQueue.resetThresholdElapsed(queueResetThreshold) {
seelog.Debug("Stats not ready for container %s", dockerID)
continue
}
Expand Down
1 change: 0 additions & 1 deletion agent/tcs/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ func TestPublishMetricsRequest(t *testing.T) {
cs.Close()
}
func TestPublishMetricsOnceEmptyStatsError(t *testing.T) {

cs := clientServer{
statsEngine: &emptyStatsEngine{},
}
Expand Down

0 comments on commit 6d41ad1

Please sign in to comment.