diff options
| author | Pieter Wuille <[email protected]> | 2014-09-09 16:39:35 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-09 16:43:06 +0200 |
| commit | 1575c5171fac4f3e4f3d0794ed0312a17be6d7f1 (patch) | |
| tree | a7f34e8c2c5aba8fbb00ab3da26376f609acec22 /src/main.cpp | |
| parent | Merge pull request #4873 (diff) | |
| parent | Remove some unnecessary c_strs() in logging and the GUI (diff) | |
| download | discoin-1575c5171fac4f3e4f3d0794ed0312a17be6d7f1.tar.xz discoin-1575c5171fac4f3e4f3d0794ed0312a17be6d7f1.zip | |
Merge pull request #4868
2c2cc5d Remove some unnecessary c_strs() in logging and the GUI (Philip Kaufmann)
f7d0a86 netbase: Use .data() instead of .c_str() on binary string (Wladimir J. van der Laan)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2e24eb950..66b09f738 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4395,7 +4395,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) if (!pto->fDisconnect && state.nBlocksInFlight && state.nLastBlockReceive < state.nLastBlockProcess - BLOCK_DOWNLOAD_TIMEOUT*1000000 && state.vBlocksInFlight.front().nTime < state.nLastBlockProcess - 2*BLOCK_DOWNLOAD_TIMEOUT*1000000) { - LogPrintf("Peer %s is stalling block download, disconnecting\n", state.name.c_str()); + LogPrintf("Peer %s is stalling block download, disconnecting\n", state.name); pto->fDisconnect = true; } @@ -4505,7 +4505,7 @@ bool CBlockUndo::ReadFromDisk(const CDiskBlockPos &pos, const uint256 &hashBlock } std::string CBlockFileInfo::ToString() const { - return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks, nSize, nHeightFirst, nHeightLast, DateTimeStrFormat("%Y-%m-%d", nTimeFirst).c_str(), DateTimeStrFormat("%Y-%m-%d", nTimeLast).c_str()); + return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks, nSize, nHeightFirst, nHeightLast, DateTimeStrFormat("%Y-%m-%d", nTimeFirst), DateTimeStrFormat("%Y-%m-%d", nTimeLast)); } |