summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-04-02 19:36:36 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-04-02 19:36:36 +0000
commit503764833d0f437d06da9253c63d5c56129a05ba (patch)
tree6e8af26dfa919f908807c9fc8a1bc1e92cf7095d
parent9fd6f0309932b161e80640d738b8492101c349a0 (diff)
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
-rw-r--r--drivers/dahdi/xpp/xbus-pcm.c2
1 files changed, 1 insertions, 1 deletions
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;
}