From cd8d42fc684be97bc362a6db5b2165aaf4a41a92 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 16 Jul 2015 20:08:43 +0300 Subject: [PATCH] fix for duration index --- sessionmanager/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sessionmanager/session.go b/sessionmanager/session.go index 8550f91ac..9b69cfee4 100644 --- a/sessionmanager/session.go +++ b/sessionmanager/session.go @@ -104,7 +104,7 @@ func (s *Session) debitLoop(runIdx int) { nextCd.TimeEnd = cc.GetEndTime() // set debited timeEnd // update call duration with real debited duration nextCd.DurationIndex -= debitPeriod - nextCd.DurationIndex += nextCd.GetDuration() + nextCd.DurationIndex += cc.GetDuration() nextCd.MaxCostSoFar += cc.Cost time.Sleep(cc.GetDuration()) index++