mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Change percent_lost in capture-loss from a string to a double.
This commit is contained in:
parent
eff96bef37
commit
e1d2f6d82f
3 changed files with 12 additions and 3 deletions
9
CHANGES
9
CHANGES
|
@ -1,4 +1,13 @@
|
||||||
|
|
||||||
|
2.2-beta-167 | 2013-10-29 06:02:38 -0700
|
||||||
|
|
||||||
|
* Change percent_lost in capture-loss from a string to a double.
|
||||||
|
(Vlad Grigorescu)
|
||||||
|
|
||||||
|
* New version of the threading queue deadlock fix. (Robin Sommer)
|
||||||
|
|
||||||
|
* Updating README with download/git information. (Robin Sommer)
|
||||||
|
|
||||||
2.2-beta-161 | 2013-10-25 15:48:15 -0700
|
2.2-beta-161 | 2013-10-25 15:48:15 -0700
|
||||||
|
|
||||||
* Add curl to list of optional dependencies. It's used by the
|
* Add curl to list of optional dependencies. It's used by the
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.2-beta-161
|
2.2-beta-167
|
||||||
|
|
|
@ -34,7 +34,7 @@ export {
|
||||||
## Total number of ACKs seen in the previous measurement interval.
|
## Total number of ACKs seen in the previous measurement interval.
|
||||||
acks: count &log;
|
acks: count &log;
|
||||||
## Percentage of ACKs seen where the data being ACKed wasn't seen.
|
## 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.
|
## 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,
|
$ts_delta=now-last_ts,
|
||||||
$peer=peer_description,
|
$peer=peer_description,
|
||||||
$acks=acks, $gaps=gaps,
|
$acks=acks, $gaps=gaps,
|
||||||
$percent_lost=fmt("%.3f%%", pct_lost)];
|
$percent_lost=pct_lost];
|
||||||
|
|
||||||
if ( pct_lost >= too_much_loss*100 )
|
if ( pct_lost >= too_much_loss*100 )
|
||||||
NOTICE([$note=Too_Much_Loss,
|
NOTICE([$note=Too_Much_Loss,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue