From ba480a93b4bf557feba95f9cc49cd11d62d37241 Mon Sep 17 00:00:00 2001 From: Rod Schultz <Rod.Schultz@bull.com> Date: Fri, 27 Sep 2013 11:07:24 -0700 Subject: [PATCH] acct_gather/infiniband - correct packets_in/out The ofed plugin doesn't correctly collect packets_in and packets_out. The ofed plugin treats them as a running total while the hdf5 profile plugin thinks they are a difference series. The attached match makes these data items differences. bug 430 --- .../acct_gather_infiniband/ofed/acct_gather_infiniband_ofed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/acct_gather_infiniband/ofed/acct_gather_infiniband_ofed.c b/src/plugins/acct_gather_infiniband/ofed/acct_gather_infiniband_ofed.c index 6c5d352012c..30c0c2a284e 100644 --- a/src/plugins/acct_gather_infiniband/ofed/acct_gather_infiniband_ofed.c +++ b/src/plugins/acct_gather_infiniband/ofed/acct_gather_infiniband_ofed.c @@ -244,9 +244,9 @@ static int _read_ofed_values(void) ofed_sens.total_xmtdata += ofed_sens.xmtdata; ofed_sens.rcvdata = (recv_val - last_update_rcvdata) * 4; ofed_sens.total_rcvdata += ofed_sens.rcvdata; - ofed_sens.xmtpkts += send_pkts - last_update_xmtpkts; + ofed_sens.xmtpkts = send_pkts - last_update_xmtpkts; ofed_sens.total_xmtpkts += ofed_sens.xmtpkts; - ofed_sens.rcvpkts += recv_pkts - last_update_rcvpkts; + ofed_sens.rcvpkts = recv_pkts - last_update_rcvpkts; ofed_sens.total_rcvpkts += ofed_sens.rcvpkts; last_update_xmtdata = send_val; -- GitLab