From 8ec4b3e16ed1e125230e9ba4ae592a47765f042a Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 6 Nov 2013 09:21:01 -0200 Subject: [PATCH] i can't get this conversion from time_duration to string right. i give up. --- libtorrent/src/kademlia/node.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index 0da27d71..c3c9af6b 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include +//#include #include "libtorrent/io.hpp" #include "libtorrent/bencode.hpp" @@ -564,10 +565,10 @@ bool node_impl::refresh_storage() { } m_next_storage_refresh = time_now() + sleepToRefresh; -#ifndef __ANDROID__ - printf("node dht: next storage refresh in %d seconds\n", - static_cast(sleepToRefresh/1000000) ); -#endif +/* + printf("node dht: next storage refresh in %s\n", + boost::posix_time::to_simple_string(sleepToRefresh).c_str() ); +*/ return did_something; }