From 43ca3bfe7b2b9cd965eb488c2c2a79377730eb95 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 28 May 2012 15:18:14 +0200 Subject: [PATCH 1/1] Print raw numbers, not just rates. --- summarize.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/summarize.pl b/summarize.pl index 917c548..050aabb 100755 --- a/summarize.pl +++ b/summarize.pl @@ -26,6 +26,7 @@ for my $n (sort { $a <=> $b } keys %buckets) { my $drop_rate = $num_drops / ($n * $num_bursts); my $drop_event_rate = $bursts_with_drops / $num_bursts; - printf "%3d: drop_rate %.5f drop_event_rate %.5f\n", - $n, $drop_rate, $drop_event_rate; + printf "%3d: drop_rate %.5f (%4d/%8d) drop_event_rate %.5f (%3d/%4d)\n", + $n, $drop_rate, $num_drops, $n * $num_bursts, + $drop_event_rate, $bursts_with_drops, $num_bursts; } -- 2.39.2