mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ip/torrent: fix wrong interval check
This commit is contained in:
parent
217d2f751c
commit
3ba68527b3
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ webtracker(char *url)
|
|||
n = 0;
|
||||
if(p = dstr(dlook(d, "interval")))
|
||||
n = atoi(p);
|
||||
if(n < 10 | n > 60*60)
|
||||
if(n < 10 || n > 60*60)
|
||||
n = 2*60;
|
||||
freedict(d);
|
||||
sleep(n * 1000 + nrand(5000));
|
||||
|
|
Loading…
Reference in a new issue