From f45833edebd8fea1eb4450afa7eb1d022e2ce03d Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 30 Apr 2014 19:19:44 +0300 Subject: [PATCH] small fix --- engine/balances.go | 3 +-- engine/calldesc.go | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/engine/balances.go b/engine/balances.go index 44df78593..d913333db 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -253,8 +253,7 @@ func (b *Balance) DebitUnits(cc *CallCost, count bool, ub *Account, moneyBalance nInc.UnitInfo = &UnitInfo{newCC.Destination, seconds, cc.TOR} if cost != 0 { nInc.BalanceInfo.MoneyBalanceUuid = moneyBal.Uuid - moneyBal.Value -= cost - moneyBal.Value = utils.Round(moneyBal.Value, roundingDecimals, utils.ROUNDING_MIDDLE) + moneyBal.SubstractAmount(cost) } nInc.paid = true if count { diff --git a/engine/calldesc.go b/engine/calldesc.go index 8ceb4caf2..7ca5a200c 100644 --- a/engine/calldesc.go +++ b/engine/calldesc.go @@ -21,7 +21,6 @@ package engine import ( "errors" "fmt" - "log" "log/syslog" "strings" "time" @@ -628,7 +627,6 @@ func (cd *CallDescriptor) MaxDebit() (cc *CallCost, err error) { return 0, err }) } else { - log.Print("cxcxxc") return nil, err } }