summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-16 15:31:44 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-16 15:31:44 +0000
commit361c62c337b4364ee192a0ca5a72b8bf51467b16 (patch)
treec3270b519806e69475f0ad2a437e50de781e9388
parent84e136f8f2b146badcfaa8d229112809e1919ae4 (diff)
Fixed div-by-zero when speficying more than 1000 connections per seconds (probably not very common)
-rw-r--r--src/htscore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htscore.c b/src/htscore.c
index 3961933..5872dd8 100644
--- a/src/htscore.c
+++ b/src/htscore.c
@@ -3196,7 +3196,7 @@ int back_pluggable_sockets_strict(struct_back * sback, httrackp * opt) {
if (lap < minLap) {
n = 0;
- } else {
+ } else if (minLap != 0) {
int nMax = (int) (lap / minLap);
n = min(n, nMax);