mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Merged revisions 244547 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r244547 | mmichelson | 2010-02-03 13:26:53 -0600 (Wed, 03 Feb 2010) | 3 lines Initialize counters in ast_sched_report so that resulting data is not bogus. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@244553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -392,6 +392,7 @@ void ast_sched_report(struct sched_context *con, struct ast_str **buf, struct as
|
|||||||
struct sched *cur;
|
struct sched *cur;
|
||||||
int countlist[cbnames->numassocs + 1];
|
int countlist[cbnames->numassocs + 1];
|
||||||
|
|
||||||
|
memset(countlist, 0, sizeof(countlist));
|
||||||
ast_str_set(buf, 0, " Highwater = %d\n schedcnt = %d\n", con->highwater, con->schedcnt);
|
ast_str_set(buf, 0, " Highwater = %d\n schedcnt = %d\n", con->highwater, con->schedcnt);
|
||||||
|
|
||||||
ast_mutex_lock(&con->lock);
|
ast_mutex_lock(&con->lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user