Skip to content

Commit

Permalink
Fix log formatter for usec
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Oct 28, 2021
1 parent 070eb63 commit e80c0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/log/log_formatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ LIBATFRAME_UTILS_API size_t log_formatter::format(char *buff, size_t bufz, const
buff[ret++] = static_cast<char>(ms / 10000 + '0');
}
if (bufz - ret >= 1) {
buff[ret++] = static_cast<char>((ms / 1000) % 1000 + '0');
buff[ret++] = static_cast<char>((ms / 1000) % 10 + '0');
}
if (bufz - ret >= 1) {
buff[ret++] = static_cast<char>((ms / 100) % 100 + '0');
buff[ret++] = static_cast<char>((ms / 100) % 10 + '0');
}
if (bufz - ret >= 1) {
buff[ret++] = static_cast<char>((ms / 10) % 10 + '0');
Expand Down

0 comments on commit e80c0c6

Please sign in to comment.