From: Wlodek Wencel Date: Fri, 16 Aug 2019 10:04:29 +0000 (+0200) Subject: [#654] extended perfdhcp output when no packets received X-Git-Tag: Kea-1.6.0~41^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ddef751e537fc3f5a0516679d2573b7e3c1276;p=thirdparty%2Fkea.git [#654] extended perfdhcp output when no packets received --- 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; } }