Refined information shown in status bar.

This commit is contained in:
Gerhard Hoffmann 2023-08-22 13:49:42 +02:00
parent afd31f1b27
commit a803907449

View File

@ -509,13 +509,18 @@ bool Worker::updateTriggerSet() {
int const startMs = QTime::currentTime().msecsSinceStartOfDay(); int const startMs = QTime::currentTime().msecsSinceStartOfDay();
for (int repeat = 1; repeat <= 100; ++repeat) { for (int repeat = 1; repeat <= 100; ++repeat) {
qInfo() << "UPDATE TRIGGER SET -> REPEAT" << repeat; qInfo() << "UPDATE TRIGGER SET -> REPEAT" << repeat;
if (repeat > 1) { if (repeat > 1) {
int const durationMs = QTime::currentTime().msecsSinceStartOfDay() - startMs; int const durationMs = QTime::currentTime().msecsSinceStartOfDay() - startMs;
qInfo() << "REPEAT" << repeat QString const &msg = QString("[%1] time: %2.%3s").arg(repeat).arg(durationMs / 1000).arg(durationMs % 1000);
<< QString("DURATION: %1.%2s").arg(durationMs / 1000).arg(durationMs % 1000); qInfo() << "REPEAT" << msg;
emit showErrorMessage("check update trigger", msg);
} else {
emit showErrorMessage("check update trigger", QString("[%1]").arg(repeat));
} }
if ((repeat % 10) == 0) { if ((repeat % 10) == 0) {
qInfo() << "CHECK UPDATE TRIGGER. RESTART APISM ..."; qInfo() << "CHECK UPDATE TRIGGER. RESTART APISM ...";
Command c("systemctl restart apism"); Command c("systemctl restart apism");