les: new global factor key and reduced time constant

This commit is contained in:
Zsolt Felfoldi 2019-05-01 21:43:46 +02:00
parent 59baa07849
commit 853d3f879e

View file

@ -85,10 +85,10 @@ var (
const ( const (
maxCostFactor = 2 // ratio of maximum and average cost estimates maxCostFactor = 2 // ratio of maximum and average cost estimates
gfInitWeight = time.Second * 10 gfInitWeight = time.Second * 10
gfMaxWeight = time.Hour gfMaxWeight = time.Second * 1000
gfUsageThreshold = 0.5 gfUsageThreshold = 0.5
gfUsageTC = time.Second gfUsageTC = time.Second
gfDbKey = "_globalCostFactor" gfDbKey = "__globalCostFactor"
) )
// costTracker is responsible for calculating costs and cost estimates on the // costTracker is responsible for calculating costs and cost estimates on the