fix millis display (#6227)

This commit is contained in:
Nikolay Volf authored and GitHub committed 2020-06-03 11:18:10 +02:00
1 parent b800909dae
commit 28ccad4118
1 file changed
+1 -1
+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),