From ed330bd7850fad90a4d78a328aabcfba225855f9 Mon Sep 17 00:00:00 2001 From: windows11 Date: Mon, 16 Oct 2023 17:07:57 +0800 Subject: [PATCH] c style --- server/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/main.cpp b/server/src/main.cpp index 026a7ef..d24d605 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -340,11 +340,11 @@ void CMain::WatchdogMessage(int ClientNetID, double load_1, double load_5, doubl sprintf(encodeBuffer, "【告警名称】 %s \n\n【告警时间】 %s \n\n【用户名】 %s \n\n【节点名】 %s \n\n【虚拟化】 %s \n\n【主机名】 %s \n\n【位 置】 %s", Watchdog(ID)->m_aName, standardTime, - username, - name, - type, - host, - location); + username.c_str(), + name.c_str(), + type.c_str(), + host.c_str(), + location.c_str()); char *encodeUrl = curl_easy_escape(curl, encodeBuffer, strlen(encodeBuffer)); //standard url