summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 270e1d4..c4148a5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,12 +34,16 @@ struct og_server_cfg ogconfig = {
},
};
+time_t start_time;
+
int main(int argc, char *argv[])
{
char config_file[PATH_MAX + 1] = OG_SERVER_CFG_JSON;
struct ev_io ev_io_server_rest, ev_io_agent_rest;
int val;
+ start_time = time(NULL);
+
og_loop = ev_default_loop(0);
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)