Author: sparky
Date: Fri Jun  4 18:27:57 2010
New Revision: 11522

Modified:
   toys/rsget.pl/Get/UploadedTo
Log:
- page sometimes asks to wait negative time, worked around


Modified: toys/rsget.pl/Get/UploadedTo
==============================================================================
--- toys/rsget.pl/Get/UploadedTo        (original)
+++ toys/rsget.pl/Get/UploadedTo        Fri Jun  4 18:27:57 2010
@@ -20,8 +20,8 @@
 start:
        GET( $-{_uri} );
 
-       RESTART( $1 * 60, "free limit reached" )
-               if /Or wait (\d+) minutes/;
+       RESTART( ( $1 > 0 ? $1 * 60 : irand 60 ), "free limit reached" )
+               if /Or wait (-?\d+) minutes/;
 
        if ( $-{_referer} =~ m#/\?view=# ) {
                ERROR( "file not found" ) if $-{_referer} =~ /fileremoved/;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to