summaryrefslogtreecommitdiffstats
path: root/src/core.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2022-03-25 14:57:36 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2022-03-25 14:58:27 +0100
commitf3422f6afa7acabb96fcd50bd4a09c756afb7326 (patch)
tree07295a8e345b7e1a3bfeb956bc636da27600f4e3 /src/core.h
parent3b4aa721a46135ca1f441e79066248ad3cb79466 (diff)
#915 add seconds since ogserver has been launched
Extend GET /stats to show the number of seconds since the ogserver started. { "time": { "now": 1647262765, /* Seconds since 1970 */ "boot": 2151909 /* Seconds since boot */ "start" : 1647262854,, /* Seconds since 1970 */ }, [...]
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
index dd5cd58..49a646a 100644
--- a/src/core.h
+++ b/src/core.h
@@ -3,6 +3,7 @@
extern int socket_rest, socket_agent_rest;
extern struct ev_loop *og_loop;
+extern time_t start_time;
int og_socket_server_init(const char *port);
void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events);