Refined information shown in status bar.
This commit is contained in:
		@@ -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");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user