Remove timespans merging from SMG

This commit is contained in:
DanB
2016-09-20 09:44:45 +02:00
parent 3c84afc162
commit 53456b6e87

View File

@@ -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),