add the reported timestamp
这个提交包含在:
@@ -65,6 +65,12 @@ bool AircraftReporter::send(aman::AircraftReport& report) {
|
||||
bool retval = false;
|
||||
|
||||
if (nullptr != this->m_socket) {
|
||||
/* set the report time */
|
||||
std::stringstream stream;
|
||||
auto reportTime = std::chrono::utc_clock::now();
|
||||
stream << std::format("{0:%y%m%d%H%M}", reportTime);
|
||||
report.set_reporttime(stream.str());
|
||||
|
||||
/* serialize the report */
|
||||
std::string serialized = report.SerializeAsString();
|
||||
zmq::message_t message(serialized.size());
|
||||
|
||||
在新工单中引用
屏蔽一个用户