mirror of
https://github.com/usatiuk/psil.git
synced 2025-10-28 10:47:49 +01:00
remove useless 0 in log
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user