From f3422f6afa7acabb96fcd50bd4a09c756afb7326 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 25 Mar 2022 14:57:36 +0100 Subject: #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 */ }, [...] --- src/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core.h') 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); -- cgit v1.2.3-18-g5258