1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 05:33:13 +02:00

Consistently use time_t for the timer duration.

This commit is contained in:
Sadie Powell
2024-02-11 18:10:38 +00:00
parent 30b9f12711
commit cef56abea4
5 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -24,9 +24,9 @@ private:
*/
time_t trigger;
/** Numer of seconds between triggers
/** Number of seconds between triggers
*/
long secs;
time_t secs;
/** True if this is a repeating timer
*/
@@ -37,14 +37,14 @@ public:
* @param time_from_now The number of seconds from now to trigger the timer
* @param repeating Repeat this timer every time_from_now if this is true
*/
Timer(long time_from_now, bool repeating = false);
Timer(time_t time_from_now, bool repeating = false);
/** Constructor, initializes the triggering time
* @param creator The creator of the timer
* @param time_from_now The number of seconds from now to trigger the timer
* @param repeating Repeat this timer every time_from_now if this is true
*/
Timer(Module *creator, long time_from_now, bool repeating = false);
Timer(Module *creator, time_t time_from_now, bool repeating = false);
/** Destructor, removes the timer from the list
*/