monitor: Fix not accouting for multiple outstanding packets
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 6 Aug 2021 21:22:58 +0000 (14:22 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commitbc40653f30ec34f2fd55d51a912c09ae970210d9
treeeccc82570970c03f8ee2520fcdb6933e4a2bf5aa
parent84e29f3728792fd21aa9750e60616ce4321e35c8
monitor: Fix not accouting for multiple outstanding packets

Analyze code was not accounting for the fact that multiple outstanding
packets could be pending which will cause the last_tx to be overwritten
but its latency would be calculated against the very first packet
complete.

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