summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-10-29 12:55:40 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2020-10-29 12:55:40 +0100
commitf968a83ff8358e0e1bca35229c650c76bf8f5aa4 (patch)
tree3fefdb2641ae0f42c504ccdb18323428475b54a0
parent05cd19da95c0a132074feddcaf388ee3efd2f8b4 (diff)
Correctly report sample rate when using --skip or --limit
-rwxr-xr-xbin/msp430-etv2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/msp430-etv b/bin/msp430-etv
index 5116855..138c570 100755
--- a/bin/msp430-etv
+++ b/bin/msp430-etv
@@ -361,7 +361,7 @@ def main():
print(
"{:d} measurements in {:.2f} s = {:.0f} Hz sample rate".format(
- data_count, m_duration_us * 1e-6, data_count / (m_duration_us * 1e-6)
+ len(data), m_duration_us * 1e-6, len(data) / (m_duration_us * 1e-6)
)
)