path: root/tests
diff options
authorStefan Sperling <ssperling@sysmocom.de>2018-05-31 12:28:55 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-05-31 14:12:58 +0200
commit78ab624c2a50293e10f21581f96892f82749ca09 (patch)
treef375e58f79b3ad1e85d6d8a17ed0ead26755643d /tests
parentf0f7df1b87c0c82fe39e543bf6c6e432c627218d (diff)
fix time-delta calculations for measurement reports
The previous implementation unconditionally subtracted nanosecond values from different time measurements, causing overflow if the current measurement was taken in less of a fraction of a second than the past measurement. Use timespecsub() instead, which accounts for nanoseconds correctly. Also, fix calculations of KBit/s throughtput. It was not being calculated correctly, since it was actually accounting for one KB per 128th-part-of-a-second. Change-Id: I7d22e7b5902c230efeae66eb20c17026a4037887 Related: OS#3225
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions