fix typo in typo fix :)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16956 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bceeff642a
commit
e222f74cbb
|
@ -456,7 +456,7 @@ static switch_status_t do_billing(switch_core_session_t *session)
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%d seconds passed since last bill time of %s\n",
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%d seconds passed since last bill time of %s\n",
|
||||||
(int) ((ts - nibble_data->lastts) / 1000000), date);
|
(int) ((ts - nibble_data->lastts) / 1000000), date);
|
||||||
|
|
||||||
if ((ts - nibble_data->lastts) >= 0) {nn
|
if ((ts - nibble_data->lastts) >= 0) {
|
||||||
/* Convert billrate into microseconds and multiply by # of microseconds that have passed since last *successful* bill */
|
/* Convert billrate into microseconds and multiply by # of microseconds that have passed since last *successful* bill */
|
||||||
billamount = ((float) atof(billrate) / 1000000 / 60) * ((ts - nibble_data->lastts)) - nibble_data->bill_adjustments;
|
billamount = ((float) atof(billrate) / 1000000 / 60) * ((ts - nibble_data->lastts)) - nibble_data->bill_adjustments;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue