From 1488cbd9fe47a6376836b222f55a6d679f3fbdad Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 30 Aug 2011 17:48:43 +0000 Subject: [PATCH] Fix copy/paste error. --- cdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdr.c b/cdr.c index 961cf3f..f3db696 100644 --- a/cdr.c +++ b/cdr.c @@ -359,7 +359,7 @@ int cdr_create_cdrs(med_entry_t *records, u_int64_t count, g_strlcpy(cdr->call_id, e->callid, sizeof(cdr->call_id)); g_strlcpy(cdr->start_time, e->timestamp, sizeof(cdr->start_time)); - cdr->duration = (tmp_unix_endtime >= unix_timestamp) ? tmp_unix_endtime - e->unix_timestamp : 0; + cdr->duration = (tmp_unix_endtime >= e->unix_timestamp) ? tmp_unix_endtime - e->unix_timestamp : 0; g_strlcpy(cdr->call_status, call_status, sizeof(cdr->call_status)); g_strlcpy(cdr->call_code, e->sip_code, sizeof(cdr->call_code));