added block requesting fix
This commit is contained in:
@@ -218,7 +218,8 @@ namespace
|
|||||||
|
|
||||||
// this peer doesn't have a faster connection than the
|
// this peer doesn't have a faster connection than the
|
||||||
// slowest peer. Don't take over any blocks
|
// slowest peer. Don't take over any blocks
|
||||||
const int queue_size = (int)c.download_queue().size();
|
const int queue_size = (int)c.download_queue().size()
|
||||||
|
+ (int)c.request_queue().size();
|
||||||
const float weight = queue_size == 0
|
const float weight = queue_size == 0
|
||||||
? std::numeric_limits<float>::max()
|
? std::numeric_limits<float>::max()
|
||||||
: c.statistics().download_payload_rate() / queue_size;
|
: c.statistics().download_payload_rate() / queue_size;
|
||||||
|
Reference in New Issue
Block a user