Browse Source

Fixed bug where the new day message printed on an infinite loop.

pull/3/head
JustinAJ 10 years ago
parent
commit
2b15041671
  1. 1
      RenX.ExtraLogging/RenX_ExtraLogging.cpp

1
RenX.ExtraLogging/RenX_ExtraLogging.cpp

@ -67,6 +67,7 @@ int RenX_ExtraLoggingPlugin::think()
int currentDay = localtime(std::addressof<const time_t>(time(nullptr)))->tm_yday; int currentDay = localtime(std::addressof<const time_t>(time(nullptr)))->tm_yday;
if (currentDay != RenX_ExtraLoggingPlugin::day) if (currentDay != RenX_ExtraLoggingPlugin::day)
{ {
RenX_ExtraLoggingPlugin::day = currentDay;
Jupiter::String line = RenX_ExtraLoggingPlugin::newDayFmt; Jupiter::String line = RenX_ExtraLoggingPlugin::newDayFmt;
RenX::processTags(line); RenX::processTags(line);
line.println(RenX_ExtraLoggingPlugin::file); line.println(RenX_ExtraLoggingPlugin::file);

Loading…
Cancel
Save