mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
fix: compile error with clang
This commit is contained in:
committed by
Rusty Russell
parent
edf043c89b
commit
070aa08709
@@ -257,7 +257,7 @@ static void update_feerates(struct bitcoind *bitcoind,
|
||||
u32 feerate_smooth = feerate * alpha + old_feerates[i] * (1 - alpha);
|
||||
/* But to avoid updating forever, only apply smoothing when its
|
||||
* effect is more then 10 percent */
|
||||
if (abs(feerate - feerate_smooth) > (0.1 * feerate)) {
|
||||
if (abs((int)feerate - (int)feerate_smooth) > (0.1 * feerate)) {
|
||||
feerate = feerate_smooth;
|
||||
log_debug(topo->log,
|
||||
"...feerate %u smoothed to %u (alpha=%.2f)",
|
||||
|
||||
Reference in New Issue
Block a user