diff mbox

opensm/perfmgr: skip data counters when only printing errors

Message ID 20130213135203.5a782dd09233a37a2bcb3ab2@llnl.gov (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Ira Weiny Feb. 13, 2013, 9:52 p.m. UTC
Signed-off-by: Ira Weiny <weiny2@llnl.gov>
---
 opensm/osm_perfmgr_db.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Comments

Hal Rosenstock Feb. 21, 2013, 3:27 p.m. UTC | #1
On 2/13/2013 4:52 PM, Ira Weiny wrote:
> 
> 
> Signed-off-by: Ira Weiny <weiny2@llnl.gov>

Thanks. Applied.

-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/opensm/osm_perfmgr_db.c b/opensm/osm_perfmgr_db.c
index ab6c978..116bb07 100644
--- a/opensm/osm_perfmgr_db.c
+++ b/opensm/osm_perfmgr_db.c
@@ -869,6 +869,9 @@  static void dump_node_hr(db_node_t * node, FILE * fp, char *port, int err_only)
 			fprintf(fp, "     vl15_dropped         : %" PRIu64 "\n",
 				err->vl15_dropped);
 
+		if (err_only)
+			continue;
+
 		fprintf(fp, "     Last Data Update     : %s\n",
 			last_data_update);
 		fprintf(fp, "     xmit_data            : %" PRIu64,