From c705aac826ca41744f303b9adb239f1e09bff86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 10 Jul 2019 08:54:06 +0300 Subject: cmd, eth, les: make les flags conform to dotted style --- les/costtracker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'les') diff --git a/les/costtracker.go b/les/costtracker.go index 2d9c95af7..61b076d15 100644 --- a/les/costtracker.go +++ b/les/costtracker.go @@ -139,11 +139,11 @@ func newCostTracker(db ethdb.Database, config *eth.Config) (*costTracker, uint64 reqInfoCh: make(chan reqInfo, 100), utilTarget: utilTarget, } - if config.LightBandwidthIn > 0 { - ct.inSizeFactor = utilTarget / float64(config.LightBandwidthIn) + if config.LightIngress > 0 { + ct.inSizeFactor = utilTarget / float64(config.LightIngress) } - if config.LightBandwidthOut > 0 { - ct.outSizeFactor = utilTarget / float64(config.LightBandwidthOut) + if config.LightEgress > 0 { + ct.outSizeFactor = utilTarget / float64(config.LightEgress) } if makeCostStats { ct.stats = make(map[uint64][]uint64) -- cgit v1.2.3