diff options
author | Adam <adam@sigterm.info> | 2015-09-06 17:01:14 -0400 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2015-09-06 17:01:14 -0400 |
commit | aec9540601a8ca8632d0a4e0c4cec1484cfef99a (patch) | |
tree | eb4a6c6ada6e0b5c6786fc634283618c3b90dfe6 /src | |
parent | e6601069038c35c546fd3f3dce95024b0d13f1b4 (diff) | |
parent | 79d6ec656d5159551c415c7eff861829801db461 (diff) |
Merge pull request #1050 from Aviator45003/insp20
Fixed a build warning
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 766aeaf8e..656be220f 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -814,11 +814,11 @@ int InspIRCd::Run() /* Allow a buffer of two seconds drift on this so that ntpdate etc dont harass admins */ if (TIME.tv_sec < OLDTIME - 2) { - SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %lu secs.", (unsigned long)OLDTIME-TIME.tv_sec); + SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %lu secs.", (unsigned long)(OLDTIME-TIME.tv_sec)); } else if (TIME.tv_sec > OLDTIME + 2) { - SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)TIME.tv_sec - OLDTIME); + SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)(TIME.tv_sec - OLDTIME)); } OLDTIME = TIME.tv_sec; |