/[pxelator]/lib/PXElator/CouchDB.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/CouchDB.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 258 by dpavlin, Tue Aug 18 21:53:19 2009 UTC revision 299 by dpavlin, Wed Aug 26 15:59:19 2009 UTC
# Line 13  use Data::Structure::Util qw(unbless); Line 13  use Data::Structure::Util qw(unbless);
13  use Scalar::Util qw/blessed/;  use Scalar::Util qw/blessed/;
14  use Storable qw/dclone/;  use Storable qw/dclone/;
15  use Carp qw/carp/;  use Carp qw/carp/;
16    use POSIX;
17    
18  sub new {  sub new {
19          my ($class, $host, $port, $options) = @_;          my ($class, $host, $port, $options) = @_;
# Line 144  sub audit { Line 145  sub audit {
145    
146  #       carp 'audit ', dump($data);  #       carp 'audit ', dump($data);
147    
148          $time = int($time); # reduce granularity for url  #       $time = int($time); # reduce granularity for url
149            $time = strftime("%Y-%m-%d.%H:%M:%S", localtime $time);
150          my $package = $caller[0];          my $package = $caller[0];
151          $audit->put( "pxelator/$time.$package.$url", $data );          $audit->put( "pxelator/$time.$package.$url", $data );
152    

Legend:
Removed from v.258  
changed lines
  Added in v.299

  ViewVC Help
Powered by ViewVC 1.1.26