| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b943ce6 commit 6d7cd50
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -71,7 +71,11 @@ const { sleep } = require('internal/util'); | |||
| 71 | 71 | // The values are non-deterministic, so we just check that a value is | |
| 72 | 72 | // present, as opposed to a specific value. | |
| 73 | 73 | assert(histogram.count > 0, `Expected samples to be recorded, got count=${histogram.count}`); | |
| 74 | - assert(histogram.min > 0); | ||
| 74 | + // Min can legitimately be 0: the underlying HDR histogram has a | ||
| 75 | + // lowest discernible value of 1us, so samples whose delta falls in | ||
| 76 | + // the [0, 1us) bucket are reported as 0. A negative value would | ||
| 77 | + // indicate a bug. | ||
| 78 | + assert(histogram.min >= 0); | ||
| 75 | 79 | assert(histogram.max > 0); | |
| 76 | 80 | assert(histogram.stddev > 0); | |
| 77 | 81 | assert(histogram.mean > 0); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments