Rate from the newest bucket, stamped when the counters are actually read
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ func TestResetDoesNotUnderflowTotals(t *testing.T) {
|
||||
|
||||
d.rxStats[0].frames.Store(100)
|
||||
d.rxStats[0].bytes.Store(6400)
|
||||
d.sample(time.Now())
|
||||
d.sample()
|
||||
|
||||
d.rxStats[0].frames.Store(150)
|
||||
d.rxStats[0].bytes.Store(9600)
|
||||
|
||||
Reference in New Issue
Block a user