event/Loop: use std::chrono

This commit is contained in:
Max Kellermann
2016-12-27 23:06:34 +01:00
parent 3413d1bf23
commit b042095ac2
22 changed files with 92 additions and 78 deletions

View File

@@ -102,14 +102,14 @@ public:
assert(state == State::CONNECTING);
SetState(State::DELAY, std::move(e));
TimeoutMonitor::ScheduleSeconds(60);
TimeoutMonitor::Schedule(std::chrono::minutes(1));
}
void OnNfsConnectionDisconnected(std::exception_ptr e) final {
assert(state == State::READY);
SetState(State::DELAY, std::move(e));
TimeoutMonitor::ScheduleSeconds(5);
TimeoutMonitor::Schedule(std::chrono::seconds(5));
}
/* virtual methods from DeferredMonitor */