reader->partial_log_size = 0;
reader->service_reader = NULL;
reader->log_storage_reader = NULL;
- clock_gettime(CLOCK_MONOTONIC, &reader->last_read_time);
+ reader->last_read_time.tv_sec = server->now.tv_sec;
+ reader->last_read_time.tv_nsec = server->now.tv_nsec;
static const struct option long_options[] = {
{"tid", required_argument, NULL, 0},
if (r < 0)
return r;
+ // used to populate the first readers
+ clock_gettime(CLOCK_MONOTONIC, &server->now);
+
//create files after resetting self privileges
list_foreach(data->logfile_configs, server, parse_logfile_config);