bool prev_emerg = false;
uint32_t other_last_sec = 0; /**< last sec stamp when defrag etc ran */
- /* don't start our activities until time is setup */
- while (!TimeModeIsReady()) {
- if (suricata_ctl_flags != 0)
- return TM_ECODE_OK;
- usleep(10);
- }
-
uint32_t mp = MemcapsGetPressure() * 100;
if (ftd->instance == 0) {
StatsSetUI64(th_v, ftd->cnt.memcap_pressure, mp);
StatsSetUI64(th_v, ftd->cnt.flow_mgr_rows_sec, rows_sec);
TmThreadsSetFlag(th_v, THV_RUNNING);
+ /* don't start our activities until time is setup */
+ while (!TimeModeIsReady()) {
+ if (suricata_ctl_flags != 0)
+ return TM_ECODE_OK;
+ usleep(10);
+ }
bool run = TmThreadsWaitForUnpause(th_v);
while (run) {