mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-03 17:40:02 +01:00
lnd: fix unconvert warnings
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
f2843dd4c9
commit
143a6e01bb
@@ -1097,7 +1097,7 @@ func normalizeFunc(edges []*lnrpc.ChannelEdge, scaleFactor float64) func(int64)
|
||||
y := math.Log2(float64(x))
|
||||
|
||||
// TODO(roasbeef): results in min being zero
|
||||
return float64(y-min) / float64(max-min) * scaleFactor
|
||||
return y-min / max-min * scaleFactor
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user