]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#654] extended perfdhcp output when no packets received 654-perfdhcp-does-not-print-all-the-rtt-stats-on-no-received-packets
authorWlodek Wencel <wlodek@isc.org>
Fri, 16 Aug 2019 10:04:29 +0000 (12:04 +0200)
committerWlodek Wencel <wlodek@isc.org>
Fri, 16 Aug 2019 10:04:29 +0000 (12:04 +0200)
src/bin/perfdhcp/stats_mgr.h

index 45464f9f00572c51250c983a93d5d5fbd8c30662..d4cba5787f2a8c019392ca0be30ce8869a225e79 100644 (file)
@@ -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;
         }
     }