diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-11 16:33:13 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-05-03 10:05:48 -0700 |
commit | 3a4073799db9cf314b57eb20bb8f8fc085a76631 (patch) | |
tree | 7e3499be0bd967c93285941c237d84c091f8b785 /host/lib/include/uhdlib | |
parent | fe4a53df93fa02403b4ebdbda10b6a18d86efd07 (diff) | |
download | uhd-3a4073799db9cf314b57eb20bb8f8fc085a76631.tar.gz uhd-3a4073799db9cf314b57eb20bb8f8fc085a76631.tar.bz2 uhd-3a4073799db9cf314b57eb20bb8f8fc085a76631.zip |
examples: Avoid calculating dropped samples for negative offsets
There are cases when the first sample after an overrun has an earlier
timestamp than the timestamp of the error package. In this case,
benchmark_rate would incorrectly determine the number of dropped
samples, causing it to display a very large number.
This is not a fix of the negative offset issue, but will avoid
displaying overly pessimistic numbers dropped samples.
An error message is still displayed when this happens, which aids in
debugging this situation.
Diffstat (limited to 'host/lib/include/uhdlib')
0 files changed, 0 insertions, 0 deletions