diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-10-16 21:16:59 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-10-16 21:16:59 +0000 |
commit | fdcec1ef40b1104eb58e22842abce2f1a46be2f2 (patch) | |
tree | 63aa552cb96e49c99e41daeb820c0c52e176183d /main/cdr.c | |
parent | b8f505294abfb69d8c416afa06e4764cf183ea17 (diff) |
main/cdr: Use 'time' when rescheduling batched CDRs as opposed to 'size'
When refactoring CDRs to use the configuration framework, a 'whoops' was
introduced where the CDR batch size was used when rescheduling a batch,
as opposed to the time duration. This patch corrects that obvious mistake.
ASTERISK-24426 #close
Reported by: Shane Blaser
........
Merged revisions 425735 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cdr.c')
-rw-r--r-- | main/cdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cdr.c b/main/cdr.c index e8625892d..02ce3d902 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -3520,7 +3520,7 @@ static int submit_scheduled_batch(const void *data) /* manually reschedule from this point in time */ ast_mutex_lock(&cdr_sched_lock); - cdr_sched = ast_sched_add(sched, mod_cfg->general->batch_settings.size * 1000, submit_scheduled_batch, NULL); + cdr_sched = ast_sched_add(sched, mod_cfg->general->batch_settings.time * 1000, submit_scheduled_batch, NULL); ast_mutex_unlock(&cdr_sched_lock); /* returning zero so the scheduler does not automatically reschedule */ return 0; |