Skip to content

Commit

Permalink
tweak interval, fix calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinAzoff committed Nov 9, 2011
1 parent 41a142f commit 5dd8e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http-size-metrics.bro
Expand Up @@ -15,7 +15,7 @@ event bro_init()
{
Metrics::add_filter(HTTP_REQUEST_SIZE_BY_HOST,
[$name="all",
$break_interval=3600secs
$break_interval=600secs
]);

}
Expand All @@ -24,7 +24,7 @@ event bro_init()
event connection_finished(c: connection)
{
if (c?$resp_hostname) {
local size = c$orig$size + c$resp$size;
local size = c$orig$num_bytes_ip + c$resp$num_bytes_ip;
Metrics::add_data(HTTP_REQUEST_SIZE_BY_HOST, [$str=c$resp_hostname], size);
}
}
Expand Down

0 comments on commit 5dd8e79

Please sign in to comment.