aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-11-13 13:26:42 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-11-13 13:27:33 +0100
commitd2e987aa19295e5da40b843aad7970f781a96ccd (patch)
tree165f0201e2e392a8ddb81af20e8111cdf19a82b1 /src/net.cpp
parent24c4841d16862c201bf62218280c2194a85a81ca (diff)
parent9c3ee3bf77382aca5717f9ae7163e79e3bf836af (diff)
Merge pull request #6958
9c3ee3b [doc] Add -maxuploadtarget release notes (MarcoFalke) b27e81f [net] Cleanup maxuploadtarget (MarcoFalke)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index ada4a1bb62..1ea50b2493 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2117,8 +2117,8 @@ void CNode::SetMaxOutboundTarget(uint64_t limit)
uint64_t recommendedMinimum = (nMaxOutboundTimeframe / 600) * MAX_BLOCK_SIZE;
nMaxOutboundLimit = limit;
- if (limit < recommendedMinimum)
- LogPrintf("Max outbound target is very small (%s) and will be overshot. Recommended minimum is %s\n.", nMaxOutboundLimit, recommendedMinimum);
+ if (limit > 0 && limit < recommendedMinimum)
+ LogPrintf("Max outbound target is very small (%s bytes) and will be overshot. Recommended minimum is %s bytes.\n", nMaxOutboundLimit, recommendedMinimum);
}
uint64_t CNode::GetMaxOutboundTarget()