From 31c7c1a6737ddf8bc9b6537459f617ea57c0b799 Mon Sep 17 00:00:00 2001 From: Vlad Grigorescu Date: Mon, 28 Oct 2013 08:09:16 -0400 Subject: [PATCH] Change percent_lost in capture-loss from a string to a double. --- scripts/policy/misc/capture-loss.bro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/policy/misc/capture-loss.bro b/scripts/policy/misc/capture-loss.bro index fd578ebf25..089412020a 100644 --- a/scripts/policy/misc/capture-loss.bro +++ b/scripts/policy/misc/capture-loss.bro @@ -34,7 +34,7 @@ export { ## Total number of ACKs seen in the previous measurement interval. acks: count &log; ## Percentage of ACKs seen where the data being ACKed wasn't seen. - percent_lost: string &log; + percent_lost: double &log; }; ## The interval at which capture loss reports are created. @@ -64,7 +64,7 @@ event CaptureLoss::take_measurement(last_ts: time, last_acks: count, last_gaps: $ts_delta=now-last_ts, $peer=peer_description, $acks=acks, $gaps=gaps, - $percent_lost=fmt("%.3f%%", pct_lost)]; + $percent_lost=pct_lost]; if ( pct_lost >= too_much_loss*100 ) NOTICE([$note=Too_Much_Loss,