Last change
on this file since 0e47f67 was
f3422f6,
checked in by OpenGnSys Support Team <soporte-og@…>, 3 years ago
|
#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 */
},
[...]
|
-
Property mode set to
100644
|
File size:
272 bytes
|
Rev | Line | |
---|
[48de515] | 1 | #ifndef _OG_CORE_H |
---|
| 2 | #define _OG_CORE_H |
---|
| 3 | |
---|
| 4 | extern int socket_rest, socket_agent_rest; |
---|
| 5 | extern struct ev_loop *og_loop; |
---|
[f3422f6] | 6 | extern time_t start_time; |
---|
[48de515] | 7 | |
---|
| 8 | int og_socket_server_init(const char *port); |
---|
| 9 | void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events); |
---|
| 10 | |
---|
| 11 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.