[svn-commits] tzafrir: linux/trunk r6301 - /linux/trunk/drivers/dahdi/xpp/xbus-pcm.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Apr 2 14:36:42 CDT 2009


Author: tzafrir
Date: Thu Apr  2 14:36:36 2009
New Revision: 6301

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6301
Log:
Reduce the rate for a potentially annoying message

This message is used when an xpp span is a DAHDI sync master but also
set to take timing from the DAHDI master. This means wrong settings:
user is wasting CPU cycles.

However notifying the user about it every second is still too much.

Modified:
    linux/trunk/drivers/dahdi/xpp/xbus-pcm.c

Modified: linux/trunk/drivers/dahdi/xpp/xbus-pcm.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/xpp/xbus-pcm.c?view=diff&rev=6301&r1=6300&r2=6301
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xbus-pcm.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xbus-pcm.c Thu Apr  2 14:36:36 2009
@@ -472,7 +472,7 @@
 	if(is_master) {
 		static int	rate_limit;
 
-		if((rate_limit++ % 1003) == 0)
+		if((rate_limit++ % 10003) == 0)
 			XPD_NOTICE(xpd, "Is a DAHDI sync master: ignore sync from DAHDI\n");
 		goto noop;
 	}




More information about the svn-commits mailing list