From 53456b6e87596ba588522fa410e7013ea431fbc5 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 20 Sep 2016 09:44:45 +0200 Subject: [PATCH] Remove timespans merging from SMG --- sessionmanager/smg_session.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sessionmanager/smg_session.go b/sessionmanager/smg_session.go index 3b1b5c184..7e0517339 100644 --- a/sessionmanager/smg_session.go +++ b/sessionmanager/smg_session.go @@ -253,12 +253,13 @@ func (self *SMGSession) saveOperations(originID string, cc *engine.CallCost) err return err } } - - if len(cc.Timespans) > 50 { // Merge since we will get a callCost too big - cc.Timespans.Decompress() - cc.Timespans.Merge() // Here we could wait a while depending on the size of the timespans - cc.Timespans.Compress() - } + /* + if len(cc.Timespans) > 50 { // Merge since we will get a callCost too big + cc.Timespans.Decompress() + cc.Timespans.Merge() // Here we could wait a while depending on the size of the timespans + cc.Timespans.Compress() + } + */ smCost := &engine.SMCost{ CGRID: self.eventStart.GetCgrId(self.timezone),