mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
removed merge timespans check
This commit is contained in:
@@ -36,10 +36,6 @@ type CallCost struct {
|
||||
|
||||
// Merges the received timespan if they are similar (same activation period, same interval, same minute info.
|
||||
func (cc *CallCost) Merge(other *CallCost) {
|
||||
if len(cc.Timespans)-1 < 0 || len(other.Timespans) == 0 {
|
||||
return
|
||||
}
|
||||
// just add all timespans
|
||||
cc.Timespans = append(cc.Timespans, other.Timespans...)
|
||||
cc.Cost += other.Cost
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user