Write update_log.csv.copy in different format.
This commit is contained in:
parent
ba8dd7d083
commit
85b2c1f08e
13
update.cpp
13
update.cpp
@ -787,15 +787,10 @@ bool Update::doUpdate() {
|
|||||||
} else {
|
} else {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
char buf[128];
|
out << "DONE, " << name << ", "
|
||||||
memset(buf, 0x00, sizeof(buf));
|
<< QDateTime::currentDateTime().toString(Qt::ISODate) << ", "
|
||||||
snprintf(buf, sizeof(buf)-1, "DONE, %*.*s, %*.*s, %*.*s\n",
|
<< ((res == true) ? "SUCCESS" : "ERROR") << "\n";
|
||||||
35, 35, name.toStdString().c_str(),
|
out.flush();
|
||||||
20, 20, QDateTime::currentDateTime().toString(Qt::ISODate).toStdString().c_str(),
|
|
||||||
10, 10, (res == true) ? "SUCCESS" : "ERROR");
|
|
||||||
m_update_ctrl_file_copy.write(buf);
|
|
||||||
|
|
||||||
qInfo() << "write" << buf << "into file" << m_update_ctrl_file_copy;
|
|
||||||
|
|
||||||
} // for (it = openLines.cbegin(); it != openLines.end(); ++it) {
|
} // for (it = openLines.cbegin(); it != openLines.end(); ++it) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user