aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-06-24 00:23:28 +0200
committerGavin Andresen <gavinandresen@gmail.com>2013-06-25 10:21:02 -0400
commit65c20dbf558d9a8e9856017568016c92473dada4 (patch)
tree4b05eec1d44b4cf843cea6c23f68f13ba715d0f9 /src/util.h
parent7cc960f8f57e7fe90ee7aa0ccd3e3c6c89ec5a25 (diff)
downloadbitcoin-65c20dbf558d9a8e9856017568016c92473dada4.tar.xz
Dump addresses every 15 minutes instead of 10 seconds
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 51a694483a..3f3dd0f487 100644
--- a/src/util.h
+++ b/src/util.h
@@ -531,7 +531,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<void (*)()>, "dumpaddr", &DumpAddresses, 10000));
+// new boost::thread(boost::bind(&LoopForever<void (*)()>, "dumpaddr", &DumpAddresses, 900000));
// or maybe:
// boost::function<void()> f = boost::bind(&FunctionWithArg, argument);
// threadGroup.create_thread(boost::bind(&LoopForever<boost::function<void()> >, "nothing", f, milliseconds));
@@ -544,8 +544,8 @@ template <typename Callable> void LoopForever(const char* name, Callable func,
{
while (1)
{
- func();
MilliSleep(msecs);
+ func();
}
}
catch (boost::thread_interrupted)