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 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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user