remove useless 0 in log

This commit is contained in:
2024-01-03 23:28:24 +01:00
parent 8c542226aa
commit fb8e4c9161

View File

@@ -19,7 +19,7 @@ void Logger::log(const std::string &tag, const std::string &what, int level) {
std::shared_lock l(get()._mutex);
auto now = std::chrono::high_resolution_clock::now();
std::stringstream out;
out << std::setprecision(4) << std::fixed << "["
out << std::setprecision(3) << std::fixed << "["
<< static_cast<double>(std::chrono::duration_cast<std::chrono::milliseconds>(now - get()._start_time).count()) / 1000.0 << "s]"
<< "[" << tag << "][" << get()._level_names.at(level) << "] " << what << '\n';