aboutsummaryrefslogtreecommitdiffstats
path: root/shaper.c
diff options
context:
space:
mode:
Diffstat (limited to 'shaper.c')
-rw-r--r--shaper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaper.c b/shaper.c
index 83e5aea..2c5492a 100644
--- a/shaper.c
+++ b/shaper.c
@@ -546,7 +546,7 @@ netdelay_send_aux( NetDelay delay, const void* data, size_t size, void* opaqu
int latency = delay->min_ms;
int range = delay->max_ms - delay->min_ms;
- if (delay > 0)
+ if (range > 0)
latency += rand() % range;
//fprintf(stderr, "NetDelay:RST: delay creation for %s\n", session_to_string(info) );