event/Loop: use std::chrono
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user