[asterisk-commits] mmichelson: branch mmichelson/res_timing_timerfd r155550 - /team/mmichelson/r...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 8 16:15:39 CST 2008


Author: mmichelson
Date: Sat Nov  8 16:15:38 2008
New Revision: 155550

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155550
Log:
Turn the max rate into a #defined constant

Modified:
    team/mmichelson/res_timing_timerfd/res/res_timing_timerfd.c

Modified: team/mmichelson/res_timing_timerfd/res/res_timing_timerfd.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/res_timing_timerfd/res/res_timing_timerfd.c?view=diff&rev=155550&r1=155549&r2=155550
==============================================================================
--- team/mmichelson/res_timing_timerfd/res/res_timing_timerfd.c (original)
+++ team/mmichelson/res_timing_timerfd/res/res_timing_timerfd.c Sat Nov  8 16:15:38 2008
@@ -63,6 +63,7 @@
 static struct ao2_container *timerfd_timers;
 
 #define TIMERFD_TIMER_BUCKETS 563
+#define TIMERFD_MAX_RATE 1000
 
 struct timerfd_timer {
 	int handle;
@@ -239,7 +240,7 @@
 
 static unsigned int timerfd_timer_get_max_rate(int handle)
 {
-	return 1000;
+	return TIMERFD_MAX_RATE;
 }
 
 static int load_module(void)




More information about the asterisk-commits mailing list