mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
Revert SMGeneric Timespans merge
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user