29,11 → 29,9 |
} |
|
# active calls |
$db->query("select count(acctid), sum(extract(epoch from date_trunc('second',current_timestamp-linkdate)))" |
. " from activecalls where" . BaseQuery() . " and duration is null"); |
$db->query("select count(acctid) from activecalls where" . BaseQuery() . " and duration is null"); |
$db->fetch_row_idx(); |
$display->add_variables(array('CS_ACTIVE' => $db->get_field(0), |
'CS_ACTIVE_DUR' => Duration($db->get_field(1)))); |
$display->add_variables(array('CS_ACTIVE' => $db->get_field(0))); |
|
add_summary('CS_TODAY', 'CS_TODAY_DUR', 'day'); |
add_summary('CS_WEEK', 'CS_WEEK_DUR', 'week'); |