author | Florian Forster <octo@collectd.org> | |
Wed, 6 Mar 2013 07:15:35 +0000 (08:15 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 6 Mar 2013 07:15:35 +0000 (08:15 +0100) | ||
commit | 2eb4e445aaa65f27833ec446175955b28e099a18 | |
tree | 7a44a9b79613148829af81c33534254fcb52da7c | tree | snapshot |
parent | 99fa51782d5f407e3587d00f8335feee2e0a669b | commit | diff |
snort plugin: Replace the mmap() code with the tail-code from collectd.
This makes following along a file more I/O friendly, I hope. Also, we
don't need to do quite as much buffer processing because lines are
already split for us. Also, in the unlikely case that Snort is writing
the stats file more often than collectd reads it, this will pick up all
intermediate values.
This makes following along a file more I/O friendly, I hope. Also, we
don't need to do quite as much buffer processing because lines are
already split for us. Also, in the unlikely case that Snort is writing
the stats file more often than collectd reads it, this will pick up all
intermediate values.
src/snort.c | diff | blob | history |