mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
fix compressed TimeSpan cost calculation
This commit is contained in:
@@ -328,7 +328,7 @@ func (ts *TimeSpan) CalculateCost() float64 {
|
||||
}
|
||||
return ts.RateInterval.GetCost(ts.GetDuration(), ts.GetGroupStart())
|
||||
} else {
|
||||
return ts.Increments.GetTotalCost()
|
||||
return ts.Increments.GetTotalCost() * float64(ts.GetCompressFactor())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user