diff options
| author | 2014-07-10 12:17:55 +0200 | |
|---|---|---|
| committer | 2014-07-10 12:17:55 +0200 | |
| commit | acccaa39641500b8a691db4136e6571102a438ed (patch) | |
| tree | 5faed16f0fc7ac11566d6df19561abd3c3ad8c43 /src/timer.cpp | |
| parent | Move the definition of Timer::Timer() into the source file from the header (diff) | |
Remove current time parameter of the Timer constructor
Diffstat (limited to 'src/timer.cpp')
| -rw-r--r-- | src/timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.cpp b/src/timer.cpp index 4fee71742..0b0d8bac3 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -30,8 +30,8 @@ void Timer::SetInterval(time_t newinterval) ServerInstance->Timers.AddTimer(this); } -Timer::Timer(unsigned int secs_from_now, time_t now, bool repeating) - : trigger(now + secs_from_now) +Timer::Timer(unsigned int secs_from_now, bool repeating) + : trigger(ServerInstance->Time() + secs_from_now) , secs(secs_from_now) , repeat(repeating) { |
