/[Sack]/trunk/views/pxelator/ip-date.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/views/pxelator/ip-date.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations)
Sun Jan 31 15:51:38 2010 UTC (14 years, 4 months ago) by dpavlin
File MIME type: text/plain
File size: 295 byte(s)
graph ips by networks in time

1
2 if ( my $ip = $rec->{ip} ) {
3
4 $ip =~ s/\.\d+$/.0/;
5
6 my $t = int( $rec->{package}->{time} / 86400 ) * 86400;
7 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($t);
8 my $date = sprintf("%04d-%02d-%02d", $year + 1900, $mon + 1, $mday);
9
10 $out->{"date,$ip+"}->{ $date }++;
11 }
12

  ViewVC Help
Powered by ViewVC 1.1.26