From e085667054300d77b425695959f76a5618285d67 Mon Sep 17 00:00:00 2001 From: Brice Heppner Date: Fri, 19 Feb 2016 08:51:56 +0000 Subject: [PATCH] fix compressed TimeSpan cost calculation --- engine/timespans.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/timespans.go b/engine/timespans.go index b7f530d59..58769dc5a 100644 --- a/engine/timespans.go +++ b/engine/timespans.go @@ -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()) } }