Revert SMGeneric Timespans merge

This commit is contained in:
DanB
2016-09-20 10:41:21 +02:00
parent 53456b6e87
commit e0b8e9dfda

View File

@@ -253,13 +253,11 @@ 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),