remove dontSetTimestamp

This commit is contained in:
Nan Deng 2014-06-12 14:37:21 -07:00
parent 9eeb1c9fc2
commit 39f20bc6a2
2 changed files with 0 additions and 8 deletions

View File

@ -29,7 +29,6 @@ type percentilesContainerHandlerWrapper struct {
prevStats *info.ContainerStats
numStats uint64
sampler sampling.Sampler
dontSetTimestamp bool
lock sync.Mutex
}

View File

@ -150,13 +150,6 @@ func TestSampleCpuUsage(t *testing.T) {
t.Error(err)
}
// we want to set our own time.
if w, ok := handler.(*percentilesContainerHandlerWrapper); ok {
w.dontSetTimestamp = true
} else {
t.Fatal("handler is not an instance of statsSummaryContainerHandlerWrapper")
}
// request stats/obervation N+1 times, so that there will be N samples
for i := 0; i < N+1; i++ {
_, err = handler.GetStats()