Opened 13 years ago

Closed 12 years ago

#373 closed defect (fixed)

upload.pl "forgets" uploading one tile

Reported by: schuetzm@… Owned by: steve@…
Priority: minor Milestone:
Component: admin Version:
Keywords: Cc:

Description

tiles@home's upload.pl skips over one tile each uploading round; the patch below fixes the problem.

--- upload.pl   2007-02-12 14:31:02.000000000 +0100
+++ upload.pl.new       2007-02-12 15:19:42.000000000 +0100
@@ -74,7 +74,7 @@

   print @tiles . " tiles to process\n";

-  while((my $file = shift @tiles) && ($Size < $SizeLimit) && ($Count < $CountLimit)){
+  while(($Size < $SizeLimit) && ($Count < $CountLimit) && (my $file = shift @tiles)){
     my $Filename1 = "$TileDir/$file";
     my $Filename2 = "$TempDir/$file";
     if($file =~ /tile_\d+_\d+_\d+\.png$/i){

Change History (1)

comment:1 Changed 12 years ago by schuetzm@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.