Minor change: remove not needed customerNrStr-variable
This commit is contained in:
parent
b8d6c909eb
commit
a54f4f94c9
10
main.cpp
10
main.cpp
@ -135,9 +135,12 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
int machineNr = Worker::read1stLineOfFile("/etc/machine_nr");
|
int machineNr = Worker::read1stLineOfFile("/etc/machine_nr");
|
||||||
int customerNr = Worker::read1stLineOfFile("/etc/cust_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");
|
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,
|
Worker worker(hw,
|
||||||
customerNr,
|
customerNr,
|
||||||
@ -146,8 +149,7 @@ int main(int argc, char *argv[]) {
|
|||||||
branchName,
|
branchName,
|
||||||
workingDir,
|
workingDir,
|
||||||
maintenanceMode,
|
maintenanceMode,
|
||||||
dryRun
|
dryRun);
|
||||||
);
|
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user