[BACK]Return to ServerTorrents.pl CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents

Diff for /openbsd/OpenBSDTorrents/ServerTorrents.pl between version 1.8 and 1.9

version 1.8, 2005/04/01 01:20:15 version 1.9, 2005/04/04 03:14:17
Line 65 
Line 65 
         my ($name, $year, $mon, $mday, $hour, $min) =          my ($name, $year, $mon, $mday, $hour, $min) =
            /^(.*)-(\d{4})-(\d{2})-(\d{2})-(\d{2})(\d{2})/;             /^(.*)-(\d{4})-(\d{2})-(\d{2})-(\d{2})(\d{2})/;
   
           my $time = "$year.$mon.$mday $hour:$min";
   
         $mon--;          $mon--;
   
         my $epoch = timegm(0,$min,$hour,$mday,$mon,$year);          my $epoch = timegm(0,$min,$hour,$mday,$mon,$year);
Line 76 
Line 78 
                 mday      => $mday,                  mday      => $mday,
                 hour      => $hour,                  hour      => $hour,
                 min       => $min,                  min       => $min,
                   time      => $time,
                 epoch     => $epoch,                  epoch     => $epoch,
         };          };
   
Line 90 
Line 93 
                 #print "\t$epoch\n";                  #print "\t$epoch\n";
                 my $torrent = $files{$name}{$epoch}{file};                  my $torrent = $files{$name}{$epoch}{file};
                 unless (exists $server_torrents{$torrent} ) {                  unless (exists $server_torrents{$torrent} ) {
                         my $time =                          #my $time =
                                 $files{$name}{$epoch}{year} . '-' .                          #       $files{$name}{$epoch}{year} . '-' .
                                 $files{$name}{$epoch}{mon}  . '-' .                          #       $files{$name}{$epoch}{mon}  . '-' .
                                 $files{$name}{$epoch}{mday} . ' ' .                          #       $files{$name}{$epoch}{mday} . ' ' .
                                 $files{$name}{$epoch}{hour} . ':' .                          #       $files{$name}{$epoch}{hour} . ':' .
                                 $files{$name}{$epoch}{min}  . ':00';                          #       $files{$name}{$epoch}{min}  . ':00';
   
                         Upload_Torrent($torrent, $time);                          Upload_Torrent($torrent, $files{$name}{$epoch}{time});
                 }                  }
                 next;                  next;
         }          }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>