fix compressed TimeSpan cost calculation

This commit is contained in:
Brice Heppner
2016-02-19 08:51:56 +00:00
parent 84f9af6043
commit e085667054

View File

@@ -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())
}
}