Skip to content
Snippets Groups Projects
Commit 28ccad41 authored by Nikolay Volf's avatar Nikolay Volf Committed by GitHub
Browse files

fix millis display (#6227)

parent b800909d
Branches
No related merge requests found
......@@ -253,7 +253,7 @@ pub fn init_logger(pattern: &str) {
format!("{}", Colour::Blue.bold().paint(x))
});
let millis = (now.tm_nsec as f32 / 1000000.0).floor() as usize;
let timestamp = format!("{}.{}", timestamp, millis);
let timestamp = format!("{}.{:03}", timestamp, millis);
format!(
"{} {} {} {} {}",
Colour::Black.bold().paint(timestamp),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment