From 503764833d0f437d06da9253c63d5c56129a05ba Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 2 Apr 2009 19:36:36 +0000 Subject: 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. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6301 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xbus-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dahdi/xpp/xbus-pcm.c b/drivers/dahdi/xpp/xbus-pcm.c index 2d98dc5..6522a91 100644 --- a/drivers/dahdi/xpp/xbus-pcm.c +++ b/drivers/dahdi/xpp/xbus-pcm.c @@ -472,7 +472,7 @@ int dahdi_sync_tick(struct dahdi_span *span, int is_master) 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; } -- cgit v1.2.3