shithub: riscv

Download patch

ref: 3ba68527b3809a9eceebdae5d58392d22379d607
parent: 217d2f751cae9fd59402bfc7c1f42989d6a2551e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 4 10:48:27 EDT 2024

ip/torrent: fix wrong interval check

--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -891,7 +891,7 @@
 		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));