Skip to content

Commit

Permalink
use correct type for tv_usec
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed May 6, 2024
1 parent 868fda3 commit e85a9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl timeval {
pub fn from_usec(microseconds: u64) -> Self {
Self {
tv_sec: (microseconds / 1_000_000) as i64,
tv_usec: (microseconds % 1_000_000) as i32,
tv_usec: (microseconds % 1_000_000) as u32,
}
}

Expand Down

0 comments on commit e85a9bf

Please sign in to comment.