29 lines
825 B
Diff
29 lines
825 B
Diff
From 76b7748bd24ab02ac8f26917e590a41fd185c1e7 Mon Sep 17 00:00:00 2001
|
|
From: xietangxin <xietangxin@huawei.com>
|
|
Date: Fri, 12 May 2023 14:38:18 +0800
|
|
Subject: [PATCH] fix:add default data of event conf
|
|
|
|
---
|
|
src/common/event.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/common/event.c b/src/common/event.c
|
|
index 17fda5c..af98d07 100644
|
|
--- a/src/common/event.c
|
|
+++ b/src/common/event.c
|
|
@@ -27,9 +27,9 @@
|
|
#endif
|
|
|
|
static struct evt_ts_hash_t *g_evt_head = NULL;
|
|
-static unsigned int g_evt_period = 0;
|
|
+static unsigned int g_evt_period = 600;
|
|
static EventsConfig *g_evt_conf;
|
|
-static char g_lang_type[MAX_EVT_GRP_NAME_LEN];
|
|
+static char g_lang_type[MAX_EVT_GRP_NAME_LEN] = "zh_CN";
|
|
|
|
static void hash_clear_older_evt(time_t cur_time);
|
|
static unsigned int hash_count_evt(void);
|
|
--
|
|
2.33.0
|
|
|