]> git.donarmstrong.com Git - bin.git/blobdiff - get_sgf
* fix rand() call in get_sgf
[bin.git] / get_sgf
diff --git a/get_sgf b/get_sgf
index 0ce9a6ede2c9b06c61f5287bd35636decc7d2021..117912aa68d518f05ba2e90eebb8062ec9480401 100755 (executable)
--- a/get_sgf
+++ b/get_sgf
@@ -139,7 +139,7 @@ for my $url (@ARGV) {
                    $m->save_content('temp.ps');
                    last VALID_LOOP;
               }
-              $sleep = 240+int(rand*120);
+              $sleep = 240+int(rand()*120);
               print STDERR "Failure to download content, waiting $sleep seconds\n";
               $m = $state;
          } while (sleep $sleep);