Skip to content

Commit

Permalink
fix cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
intel-whye committed Oct 21, 2022
1 parent 371a9a0 commit 8026d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ std::string GetTime() {
timespec_get(&ts, TIME_UTC);
int end = strftime(buf, sizeof(buf), "%Y-%m-%d.%X", gmtime(&ts.tv_sec));
snprintf(buf + end, MAX_SIZE_LOG_TIME-end, " %09ld", ts.tv_nsec);
std::string ret = std::string(buf);
return ret;
return std::string(buf);
}

} // namespace
Expand Down Expand Up @@ -61,7 +60,7 @@ MessageInfrastructureLog::MessageInfrastructureLog() {
void MessageInfrastructureLog::LogWrite(const LogMsg& msg) {
std::lock_guard<std::mutex> lg(log_lock_);
log_queue_.push(msg);
if (log_queue_.size() == MAX_SIZE_LOG) {
if (log_queue_.size() == MAX_SIZE_LOG) {
WriteDown();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define CORE_MESSAGE_INFRASTRUCTURE_LOGGING_H_

#include <memory>
#include <mutex>
#include <mutex> //NOLINT
#include <iostream>
#include <sstream>
#include <fstream>
Expand Down

0 comments on commit 8026d29

Please sign in to comment.