Fix TTA display bug
If the TTA is 0 because the call was answered in less than a second (so that the answer_epoch and start_epoch are in the same second), it would not display the TTA at all. This is safe to include 0 because "unanswered" calls are going to have a TTA that is is the negative value of the start time, significantly lower than 0.
This commit is contained in:
parent
ef38b15cdc
commit
56a318b2f0
|
|
@ -796,7 +796,7 @@
|
|||
}
|
||||
//tta (time to answer)
|
||||
if (permission_exists('xml_cdr_tta')) {
|
||||
$content .= " <td class='middle right hide-md-dn'>".(($row['tta'] > 0) ? $row['tta']."s" : " ")."</td>\n";
|
||||
$content .= " <td class='middle right hide-md-dn'>".(($row['tta'] >= 0) ? $row['tta']."s" : " ")."</td>\n";
|
||||
}
|
||||
//duration
|
||||
if (permission_exists('xml_cdr_duration')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue