gala-gopher/fix-add-default-data-of-event-conf.patch
xietangxin 7a98e4aa4d sync bugfix
(cherry picked from commit f80b9a43fd947043bd90d948c921daeabc1f3b96)
2023-06-13 09:59:46 +08:00

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