🐞 fix(fix monit server compile error): call gettimeofday directly
This commit is contained in:
@@ -243,7 +243,6 @@ extern "C"
|
||||
struct timeval time_now;
|
||||
struct stm_stat *stat;
|
||||
struct stm_spinlock *lock; // for dynamic register command, conn_close_cb
|
||||
int (*gettime_cb)(struct timeval *tv, void *tz);
|
||||
struct monitor_connection current_conn;
|
||||
struct stm_pktdump_runtime *packet_dump;
|
||||
|
||||
@@ -282,7 +281,6 @@ extern "C"
|
||||
/************************************************************************************************************/
|
||||
/* monitor call gettimeofday(2) by default */
|
||||
struct stellar_monitor_config *stellar_monitor_config_new(const char *toml);
|
||||
int stellar_monitor_set_gettime_callback(struct stellar_monitor *stm, int (*gettime_cb)(struct timeval *tv, void *tz));
|
||||
struct stellar_monitor *stellar_monitor_get(void);
|
||||
struct stm_connection_manager *stm_connection_insert(struct evhttp_connection *evconn);
|
||||
void stm_connection_update(struct stm_connection_manager *conn_mgr, const struct evhttp_connection *evconn);
|
||||
|
||||
Reference in New Issue
Block a user