miner: improve rate comparison.

This commit is contained in:
Christopher Jeffrey 2017-02-27 16:33:45 -08:00
parent 321b3f5acc
commit e577228944
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -634,7 +634,16 @@ function cmpPriority(a, b) {
}
function cmpRate(a, b) {
return b.descRate - a.descRate;
var x = a.rate;
var y = b.rate;
if (a.descRate > a.rate)
x = a.descRate;
if (b.descRate > b.rate)
y = b.descRate;
return y - x;
}
/*