mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
Merge branch 'master' of https://github.com/cgrates/cgrates
This commit is contained in:
@@ -76,6 +76,9 @@ type CdrStats struct {
|
||||
}
|
||||
|
||||
func (cs *CdrStats) AcceptCdr(cdr *utils.StoredCdr) bool {
|
||||
if cdr == nil {
|
||||
return false
|
||||
}
|
||||
if len(cs.SetupInterval) > 0 {
|
||||
if cdr.SetupTime.Before(cs.SetupInterval[0]) {
|
||||
return false
|
||||
|
||||
@@ -148,7 +148,7 @@ func (s *Stats) UpdateQueues(css []*CdrStats, out *int) error {
|
||||
var existing bool
|
||||
if oldQueues != nil {
|
||||
if sq, existing = oldQueues[cs.Id]; existing {
|
||||
sq.conf = cs
|
||||
sq.UpdateConf(cs)
|
||||
}
|
||||
}
|
||||
if sq == nil {
|
||||
|
||||
Reference in New Issue
Block a user