diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-16 15:31:44 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-06-16 15:31:44 +0000 |
commit | 361c62c337b4364ee192a0ca5a72b8bf51467b16 (patch) | |
tree | c3270b519806e69475f0ad2a437e50de781e9388 | |
parent | 84e136f8f2b146badcfaa8d229112809e1919ae4 (diff) |
Fixed div-by-zero when speficying more than 1000 connections per seconds (probably not very common)
-rw-r--r-- | src/htscore.c | 2 |
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); |