diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-09-22 16:17:08 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-09-28 06:25:25 -0700 |
commit | b34e2f05938a0af11d7c49510512490fc41e1af4 (patch) | |
tree | 7fb26dc3fcffdb4eeb8745526aefb516edb90c1e /tools/dissectors/make-plugin-reg.py | |
parent | 30a40395b92fa31ad74c0435a970e92c90a942d4 (diff) | |
download | uhd-b34e2f05938a0af11d7c49510512490fc41e1af4.tar.gz uhd-b34e2f05938a0af11d7c49510512490fc41e1af4.tar.bz2 uhd-b34e2f05938a0af11d7c49510512490fc41e1af4.zip |
python: Fix dropped-sample calculation in benchmark_rate.py
This fixes a subtle bug, where a variable to cache the timestamp of an
error gets bound to the metadata instead of creating a copy thereof.
Without this fix, the calculation of dropped samples would always be 0,
because the difference in timestamps would incorrectly be always zero.
This fix will now make a copy of the timestamp.
Shoutout to GitHub user bhorsfield for finding this issue.
Diffstat (limited to 'tools/dissectors/make-plugin-reg.py')
0 files changed, 0 insertions, 0 deletions