It looks like the order hosts are inserted into the queue is the reverse
of what the HostSortCompre function says.
I have a couple of hosts which for the past few days have not been
backed up and starting looking into the queueing mechanism. I put in
some logging and see my machines with the oldest backups added last.
This patch for HostSortCompare should fix that:
--- BackupPC 2004/09/08 11:24:11 1.1
+++ BackupPC 2004/09/08 11:29:01
@@ -1542,7 +1542,7 @@
{
return -1 if ( $Status{$a}{error} ne "" && $Status{$b}{error} eq "" );
return 1 if ( $Status{$a}{error} eq "" && $Status{$b}{error} ne "" );
- return $Status{$a}{endTime} <=> $Status{$b}{endTime};
+ return $Status{$b}{endTime} <=> $Status{$a}{endTime};
}
|