From eeadc8a55e2a1e9e8c6c1b135dd4db68ada7239e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 26 May 2015 10:21:53 +0300 Subject: [PATCH] founding for the new call cost --- engine/calldesc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/calldesc.go b/engine/calldesc.go index 626d754ba..047c86dd1 100644 --- a/engine/calldesc.go +++ b/engine/calldesc.go @@ -433,6 +433,10 @@ func (cd *CallDescriptor) GetCost() (*CallCost, error) { } } cc.Cost = cost + // global rounding + roundingDecimals, roundingMethod := cc.GetLongestRounding() + cc.Cost = utils.Round(cc.Cost, roundingDecimals, roundingMethod) + return cc, nil }