Skip to content

Commit ed330bd

Browse files
author
windows11
committed
c style
1 parent 77cb62a commit ed330bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/src/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@ void CMain::WatchdogMessage(int ClientNetID, double load_1, double load_5, doubl
340340
sprintf(encodeBuffer, "【告警名称】 %s \n\n【告警时间】 %s \n\n【用户名】 %s \n\n【节点名】 %s \n\n【虚拟化】 %s \n\n【主机名】 %s \n\n【位 置】 %s",
341341
Watchdog(ID)->m_aName,
342342
standardTime,
343-
username,
344-
name,
345-
type,
346-
host,
347-
location);
343+
username.c_str(),
344+
name.c_str(),
345+
type.c_str(),
346+
host.c_str(),
347+
location.c_str());
348348
char *encodeUrl = curl_easy_escape(curl, encodeBuffer, strlen(encodeBuffer));
349349

350350
//standard url

0 commit comments

Comments
 (0)