lnd: fix unconvert warnings

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-03-13 16:30:23 -07:00
1 parent f2843dd4c9
commit 143a6e01bb
10 files changed
+18 -18

No files matched your search

+1 -1
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
}
}