lnd: fix unconvert warnings

This commit is contained in:
Andrey Samokhvalov
2017-02-23 22:07:01 +03:00
committed by Olaoluwa Osuntokun
parent f2843dd4c9
commit 143a6e01bb
10 changed files with 18 additions and 18 deletions

View File

@@ -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
}
}