fix millis display (#6227)

This commit is contained in:
Nikolay Volf
2020-06-03 12:18:10 +03:00
committed by GitHub
parent b800909dae
commit 28ccad4118
+1 -1
View File
@@ -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),