summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-08-13 16:26:48 +0100
committerPeter Powell <petpow@saberuk.com>2017-09-03 20:20:30 +0100
commite7c829af5941c6a8a303ca75ed9ac47570347e41 (patch)
treea40aa5b57346eb0b83e6f6b2cef1df36732800e5 /src/configreader.cpp
parent74dd288542e28f3604306cc69468f88b14c1b3c5 (diff)
Convert a bunch of time-related config options to getDuration.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 220026155..f29356c0c 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -310,8 +310,8 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current)
me->name = name;
- me->registration_timeout = tag->getInt("timeout", me->registration_timeout);
- me->pingtime = tag->getInt("pingfreq", me->pingtime);
+ me->registration_timeout = tag->getDuration("timeout", me->registration_timeout);
+ me->pingtime = tag->getDuration("pingfreq", me->pingtime);
std::string sendq;
if (tag->readString("sendq", sendq))
{