OAS: Some minor fixes (#762)

* Commit some fixes

* Accept expected

Co-authored-by: Igor Gov <iggvrv@gmail.com>
This commit is contained in:
Andrey Pokhilko
2022-02-07 10:12:05 +03:00
committed by GitHub
parent ea678a4d8c
commit 0f77cf8ef9
7 changed files with 120 additions and 72 deletions

View File

@@ -17,6 +17,10 @@ type Counter struct {
}
func (c *Counter) addEntry(ts float64, rt float64, succ bool, dur float64) {
if dur < 0 {
panic("Duration cannot be negative")
}
c.Entries += 1
c.SumRT += rt
c.SumDuration += dur