fix: global_timestamp

This commit is contained in:
fengzero
2022-11-07 08:36:04 +00:00
parent 82aedb1827
commit bccbf6082d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ extern "C" {
#define NEURON_PLUGIN_VER_1_0 100
#define NEURON_PLUGIN_VER_2_0 200
static volatile int64_t global_timestamp;
extern int64_t global_timestamp;
typedef struct neu_plugin_common {
uint32_t magic;
+2
View File
@@ -35,6 +35,8 @@ static neu_manager_t *g_manager = NULL;
zlog_category_t * neuron = NULL;
bool disable_jwt = false;
int64_t global_timestamp = 0;
static void sig_handler(int sig)
{
nlog_warn("recv sig: %d", sig);