Skip to content

Commit

Permalink
logs are in micros
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Jul 30, 2024
1 parent 3fb95c2 commit 60051b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl LoggerEvent {
}

pub fn timestamp(&self) -> Option<NaiveDateTime> {
NaiveDateTime::from_timestamp_nanos(self.timestamp as i64)
NaiveDateTime::from_timestamp_micros(self.timestamp as i64)
}
}
pub const MAX_EVENTS_IN_LOGGER: usize = 1024;
Expand Down

0 comments on commit 60051b7

Please sign in to comment.