summaryrefslogtreecommitdiff
path: root/src/lib/nfs
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-27 23:06:34 +0100
committerMax Kellermann <max@musicpd.org>2016-12-28 01:15:08 +0100
commitb042095ac239be78a704293f217328b7f1b4cc16 (patch)
treefcf5cc24aa212066562cef91dc24df2c89fd402f /src/lib/nfs
parent3413d1bf23a7ba4f33d015d1ec5024c191fe08e5 (diff)
event/Loop: use std::chrono
Diffstat (limited to 'src/lib/nfs')
-rw-r--r--src/lib/nfs/Connection.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index 5f6ab4ca9..ec8c6ea90 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -33,7 +33,8 @@ extern "C" {
#include <poll.h> /* for POLLIN, POLLOUT */
-static constexpr unsigned NFS_MOUNT_TIMEOUT = 60;
+static constexpr std::chrono::steady_clock::duration NFS_MOUNT_TIMEOUT =
+ std::chrono::minutes(1);
inline void
NfsConnection::CancellableCallback::Stat(nfs_context *ctx,
@@ -541,7 +542,7 @@ NfsConnection::MountInternal()
postponed_mount_error = std::exception_ptr();
mount_finished = false;
- TimeoutMonitor::ScheduleSeconds(NFS_MOUNT_TIMEOUT);
+ TimeoutMonitor::Schedule(NFS_MOUNT_TIMEOUT);
#ifndef NDEBUG
in_service = false;