From 853d3f879e7645a2250d5a734754f078ae37892e Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Wed, 1 May 2019 21:43:46 +0200 Subject: [PATCH] les: new global factor key and reduced time constant --- les/costtracker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/les/costtracker.go b/les/costtracker.go index 904c5e72f7..f349f312b8 100644 --- a/les/costtracker.go +++ b/les/costtracker.go @@ -85,10 +85,10 @@ var ( const ( maxCostFactor = 2 // ratio of maximum and average cost estimates gfInitWeight = time.Second * 10 - gfMaxWeight = time.Hour + gfMaxWeight = time.Second * 1000 gfUsageThreshold = 0.5 gfUsageTC = time.Second - gfDbKey = "_globalCostFactor" + gfDbKey = "__globalCostFactor" ) // costTracker is responsible for calculating costs and cost estimates on the