Minor change: remove not needed customerNrStr-variable

This commit is contained in:
Gerhard Hoffmann 2023-07-19 16:45:43 +02:00
parent b8d6c909eb
commit a54f4f94c9

View File

@ -135,9 +135,12 @@ int main(int argc, char *argv[]) {
int machineNr = Worker::read1stLineOfFile("/etc/machine_nr");
int customerNr = Worker::read1stLineOfFile("/etc/cust_nr");
QString customerNrStr = QString("customer_") + QString::number(customerNr).rightJustified(3, '0');
int zoneNr = Worker::read1stLineOfFile("/etc/zone_nr");
QString branchName = QString("zg1/zone%1").arg(zoneNr);
QString const branchName = (zoneNr != 0)
? QString("zg1/zone%1").arg(zoneNr) : "master";
QThread::currentThread()->setObjectName("main thread");
qInfo() << "Main thread" << QThread::currentThreadId();
Worker worker(hw,
customerNr,
@ -146,8 +149,7 @@ int main(int argc, char *argv[]) {
branchName,
workingDir,
maintenanceMode,
dryRun
);
dryRun);
return a.exec();
}