Skip to content

Commit

Permalink
Merge pull request #10 from TheCacophonyProject/timestamp-fix
Browse files Browse the repository at this point in the history
logs are in micros
  • Loading branch information
gferraro authored Jul 30, 2024
2 parents 3fb95c2 + 60051b7 commit 8a8be40
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 8a8be40

Please sign in to comment.