freebsd-ports/www/lightsquid/files/patch-lightparser.pl
Renato Botelho 4c1eacfd4b Patch lightsquid to consider TCP_REFRESH_UNMODIFIED as a HIT and increment
counter. Bump PORTREVISION

Obtained from:	pfSense Forum https://forum.pfsense.org/index.php?topic=107659.msg599640#msg599640
Sponsored by:	Rubicon Communications (Netgate)
2016-03-01 18:15:22 +00:00

20 lines
517 B
Perl

--- lightparser.pl.orig 2009-07-02 22:15:32 UTC
+++ lightparser.pl
@@ -36,7 +36,7 @@ require "lightsquid.cfg";
require "common.pl";
#include ip2name function
-require "ip2name/ip2name.$ip2name";
+require "$ip2namepath/ip2name.$ip2name";
$SIG{INT} = \&LOCKREMOVER; # traps keyboard interrupt
my $lockfilepath ="$lockpath/lockfile";
@@ -202,7 +202,7 @@ while (<FF>) {
next;
};
- if ($Ltype =~ m/HIT/) {
+ if ($Ltype =~ m/(HIT|UNMODIFIED)/) {
$CacheHIT+=$Lsize;
} else {
$CacheMISS+=$Lsize;