monitor: Fix minimun packet latency
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 6 Aug 2021 21:05:16 +0000 (14:05 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commit84e29f3728792fd21aa9750e60616ce4321e35c8
tree2c9c2277ebbb65c56afe77fa7b6b2a0285720de8
parenta29db143b58f87a2150751814afc2c0a76a9e468
monitor: Fix minimun packet latency

It seems timer_sub can produce negative values leading to median packet
latency to be negative e.g conn->last_tx_compl is ahead of
conn->last_tx, in which case it should be discarded.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/analyze.c