From c43da3f183819f3def8a4d128489dafeef9307e6 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Mon, 24 Jun 2013 00:23:28 +0200 Subject: Dump addresses every 15 minutes instead of 10 seconds --- src/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 86a38ad331..bee2749c16 100644 --- a/src/util.h +++ b/src/util.h @@ -527,7 +527,7 @@ inline uint32_t ByteReverse(uint32_t value) // Standard wrapper for do-something-forever thread functions. // "Forever" really means until the thread is interrupted. // Use it like: -// new boost::thread(boost::bind(&LoopForever, "dumpaddr", &DumpAddresses, 10000)); +// new boost::thread(boost::bind(&LoopForever, "dumpaddr", &DumpAddresses, 900000)); // or maybe: // boost::function f = boost::bind(&FunctionWithArg, argument); // threadGroup.create_thread(boost::bind(&LoopForever >, "nothing", f, milliseconds)); @@ -540,8 +540,8 @@ template void LoopForever(const char* name, Callable func, { while (1) { - func(); MilliSleep(msecs); + func(); } } catch (boost::thread_interrupted) -- cgit v1.2.3