util-time: new function to know if live or offline

pull/2250/head
Eric Leblond 9 years ago committed by Victor Julien
parent 15766ce2c4
commit f6c3845397

@ -90,6 +90,11 @@ void TimeModeSetOffline (void)
SCLogDebug("offline time mode enabled");
}
int TimeModeIsLive(void)
{
return live;
}
void TimeSetByThread(const int thread_id, const struct timeval *tv)
{
if (live == TRUE)

@ -48,6 +48,7 @@ void TimeSetIncrementTime(uint32_t);
void TimeModeSetLive(void);
void TimeModeSetOffline (void);
int TimeModeIsLive(void);
struct tm *SCLocalTime(time_t timep, struct tm *result);
void CreateTimeString (const struct timeval *ts, char *str, size_t size);

Loading…
Cancel
Save