commit | e062997c81c6895acb7758cdc424b563a4afbd04 | [log] [tgz] |
---|---|---|
author | Peng Xu <pengxu@google.com> | Tue May 02 17:13:16 2017 -0700 |
committer | Peng Xu <pengxu@google.com> | Wed May 03 21:38:57 2017 +0000 |
tree | 8575f926dce5916af4021c9240b8d36be515e7b7 | |
parent | a6d72d0adf8a9a79b140fa4de29d39c76876192d [diff] |
Fix off by one error in timestamp jitter calculation getPercentileValue returns floor of the actual index. In cases of very low number of events is being collected, there may be no outlier event being dropped which can result in a test failure on implementation that met spec. This CL revisited the getPercentileValue function and addresses this edge case. Test: Outliers are correctly dropped in sensor tests of various rate. Change-Id: I53a981e78adf793f7f154d05d88083c58cc30fd2