Changeset 2030

Show
Ignore:
Timestamp:
02/15/2010 04:07:50 PM (5 months ago)
Author:
djb61
Message:

Fix another issue in announcing new racers in both SFV and DIZ based races, in this case if the to be announced new racer had another in progress transfer to the same release when their first transfer completed the new racer announce would not be performed. This was due to logic copied from 2.0 which wasn't taking into account the difference in the xfertime value for a file which is in the process of uploading between 2.0 and 3.0 (in 2.0 the initial value is -1, in 3.0 it is 0).

Location:
trunk/src/plugins
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.drftpd.plugins.sitebot.announce.zipscript.zip/src/org/drftpd/plugins/sitebot/announce/zipscript/zip/ZipAnnouncer.java

    r2028 r2030  
    156156 
    157157                                        if (!zipFileEntry.equals(fileevent.getTransferFile()) && zipFileEntry.getUsername().equals(username) 
    158                                                         && zipFileEntry.getXfertime() != -1) { 
     158                                                        && zipFileEntry.getXfertime() > 0) { 
    159159                                                break; 
    160160                                        } 
  • trunk/src/plugins/org.drftpd.plugins.sitebot.announce.zipscript/src/org/drftpd/plugins/sitebot/announce/zipscript/SFVAnnouncer.java

    r2028 r2030  
    161161 
    162162                                        if (!sfvFileEntry.equals(fileevent.getTransferFile()) && sfvFileEntry.getUsername().equals(username) 
    163                                                         && sfvFileEntry.getXfertime() >= 0) { 
     163                                                        && sfvFileEntry.getXfertime() > 0) { 
    164164                                                break; 
    165165                                        }