Use pid of update-tool as event-id. (used by christian)

This commit is contained in:
Gerhard Hoffmann 2025-05-14 10:42:27 +02:00
parent 061c57ef51
commit 8a2d710cf8

View File

@ -21,6 +21,7 @@
#include <QThread> #include <QThread>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QCoreApplication>
#if 0 #if 0
######################## ########################
@ -380,7 +381,7 @@ QString IsmasClient::updateNewsToIsmas(char const *event,
"{" "{"
"\"REASON\":\"SW_UP\"," "\"REASON\":\"SW_UP\","
"\"TIMESTAMP\":\"%s\"," "\"TIMESTAMP\":\"%s\","
"\"EVENT_ID\":\"0\"," "\"EVENT_ID\":\"%d\","
"\"EVENT\":\"%s\"," "\"EVENT\":\"%s\","
"\"EVENTSTATE\":1," "\"EVENTSTATE\":1,"
"\"PARAMETER\": {" "\"PARAMETER\": {"
@ -390,7 +391,7 @@ QString IsmasClient::updateNewsToIsmas(char const *event,
"\"STEP_RESULT\" : \"%s\"," "\"STEP_RESULT\" : \"%s\","
"\"VERSION\" : \"%s\"" "\"VERSION\" : \"%s\""
"}" "}"
"}", ts.toStdString().c_str(), event, percent, resultCode, "}", ts.toStdString().c_str(), QCoreApplication::pid(), event, percent, resultCode,
step, step_result, version); step, step_result, version);
return buf; return buf;
} }