Debian Lenny apt-cacher reporting bug

Debian Lenny apt-cacher reporting bug

May 18, 2009 10:35 am 0 comments

With the apt-cacher package in Debian Lenny, my web interface for the cache statistics wasn't being properly updated. Eventually, I tracked down the problem and figured out that I needed to modify the following section of apt-cacher-report.pl to look like this:

  1. #parse logfile:
  2. foreach $logfile_line (@logdata)
  3. {
  4.         #$logfile_line =~ s/ /\+/g;
  5.         @line = split /\|/, $logfile_line;
  6.         $req_date = $line[0];
  7. #       $req_pid = $line[1];
  8. #       $req_ip   = $line[2];
  9.         $req_result = $line[3];
  10.         $req_bytes  = 0;
  11.         $req_bytes  = $line[4] if $line[4] =~ /^[0-9]+$/;
  12. #       $req_object = $line[5];

Leave a reply