Commit: ea224edbd0c42cffa71c55255a742422f5f187c6
Parent: 44e1bcffcd491ae1e7d5904e44c9bc6d296d0093
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-08-10 01:01:29
Tree: a5469cc6367148f7c5310286fbc4947f1791c62a

monitor: Fix median packet size Calculating the median packet based on the current median + size / 2 does not account for last packet could smaller e.g. opp transfer could end with just 1 byte which would cut the median in a half, so this switch to more traditional means of calculating by doing total bytes sent / num of packets so each an every packet has the same weight.

Diffstat

M monitor/analyze.c | 9 ++++- - - - -

1 files changed, 4 insertions(+), 5 deletions(-)

View Full Diff | Patch