diff options
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 3b2e521da..9f3a9a5b7 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -37,6 +37,7 @@ #include <lyra/lyra.hpp> #include "inspircd.h" +#include "timeutils.h" #include "xline.h" #ifndef _WIN32 @@ -128,10 +129,10 @@ namespace time_t timediff = newtime - oldtime; if (timediff > ServerInstance->Config->TimeSkipWarn) - ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped forwards by {} seconds!", timediff); + ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped forwards by {}!", Duration::ToHuman(timediff)); else if (timediff < -ServerInstance->Config->TimeSkipWarn) - ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped backwards by {} seconds!", labs(timediff)); + ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped backwards by {}!", Duration::ToHuman(std::abs(timediff))); } // Drops to the unprivileged user/group specified in <security:runas{user,group}>. @@ -578,6 +579,9 @@ InspIRCd::InspIRCd(int argc, char** argv) } else { + fflush(stderr); + fflush(stdout); + Logs.Normal("STARTUP", "Keeping pseudo-tty open as we are running in the foreground."); } #else |
