diff --git a/ismas/ismas_client.cpp b/ismas/ismas_client.cpp index df104d3..5b224cb 100644 --- a/ismas/ismas_client.cpp +++ b/ismas/ismas_client.cpp @@ -829,7 +829,7 @@ QString IsmasClient::updateOfPSAActivated(QString const &version) { // sent ev } QString IsmasClient::updateOfPSASucceeded(QString const &version) { - m_progressInPercent = 0; + m_progressInPercent = 100; return updateNewsToIsmas("U0001", m_progressInPercent, RESULT_CODE::SUCCESS, @@ -857,13 +857,13 @@ QString IsmasClient::jsonParseFailed(int resultCode, QString reason, QString con } std::optional IsmasClient::finalResult(int resultCode, QString reason, QString const &version) { - m_progressInPercent = 0; + m_progressInPercent = 100; if (resultCode == RESULT_CODE::SUCCESS) { return updateNewsToIsmas("U0002", m_progressInPercent, - RESULT_CODE::SUCCESS, + resultCode, "FINAL-UPDATE-RESULT", - "(re-)set WAIT state", + reason.toStdString().c_str(), version.toStdString().c_str()); } if (resultCode == RESULT_CODE::INSTALL_ERROR) {