aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_timing_pthread.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 19:00:14 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 19:00:14 +0000
commit49d94f15e6003ded45a0b65a5185140b9c5cf749 (patch)
tree5362abcda8625b1d258db1bb7b37607bd22eb210 /res/res_timing_pthread.c
parent7ca66b4821d0333922d95a30b7b1449260464056 (diff)
Fix the check against the max supported rate
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123393 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_timing_pthread.c')
-rw-r--r--res/res_timing_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c
index 6b17e9b85..ead2c2d90 100644
--- a/res/res_timing_pthread.c
+++ b/res/res_timing_pthread.c
@@ -149,7 +149,7 @@ static int pthread_timer_set_rate(int handle, unsigned int rate)
return -1;
}
- if (rate > 0 && rate < MAX_RATE) {
+ if (rate > MAX_RATE) {
ast_log(LOG_ERROR, "res_timing_pthread only supports timers at a max rate of %d / sec\n",
MAX_RATE);
errno = EINVAL;