mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fix for duration index
This commit is contained in:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user