From d8ddef751e537fc3f5a0516679d2573b7e3c1276 Mon Sep 17 00:00:00 2001 From: Wlodek Wencel Date: Fri, 16 Aug 2019 12:04:29 +0200 Subject: [PATCH] [#654] extended perfdhcp output when no packets received --- src/bin/perfdhcp/stats_mgr.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/perfdhcp/stats_mgr.h b/src/bin/perfdhcp/stats_mgr.h index 45464f9f00..d4cba5787f 100644 --- a/src/bin/perfdhcp/stats_mgr.h +++ b/src/bin/perfdhcp/stats_mgr.h @@ -503,7 +503,12 @@ public: << endl << "collected packets: " << getCollectedNum() << endl; } catch (const Exception&) { - cout << "Delay summary unavailable! No packets received." << endl; + // repeated output for easier automated parsing + cout << "min delay: n/a" << endl + << "avg delay: n/a" << endl + << "max delay: n/a" << endl + << "std deviation: n/a" << endl + << "collected packets: 0" << endl; } } -- 2.47.2