Refined information shown in status bar.
This commit is contained in:
parent
afd31f1b27
commit
a803907449
@ -509,13 +509,18 @@ bool Worker::updateTriggerSet() {
|
||||
int const startMs = QTime::currentTime().msecsSinceStartOfDay();
|
||||
|
||||
for (int repeat = 1; repeat <= 100; ++repeat) {
|
||||
|
||||
qInfo() << "UPDATE TRIGGER SET -> REPEAT" << repeat;
|
||||
|
||||
if (repeat > 1) {
|
||||
int const durationMs = QTime::currentTime().msecsSinceStartOfDay() - startMs;
|
||||
qInfo() << "REPEAT" << repeat
|
||||
<< QString("DURATION: %1.%2s").arg(durationMs / 1000).arg(durationMs % 1000);
|
||||
QString const &msg = QString("[%1] time: %2.%3s").arg(repeat).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) {
|
||||
qInfo() << "CHECK UPDATE TRIGGER. RESTART APISM ...";
|
||||
Command c("systemctl restart apism");
|
||||
|
Loading…
Reference in New Issue
Block a user