Skip to content

Commit

Permalink
fix microsecond calculation for TimeSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanvanSchaik committed Aug 19, 2022
1 parent 2a8b438 commit 33fcfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl TimeValLike for TimeSpec {
}

fn num_microseconds(&self) -> i64 {
self.num_nanoseconds() / 1_000_000_000
self.num_nanoseconds() / 1_000
}

fn num_nanoseconds(&self) -> i64 {
Expand Down

0 comments on commit 33fcfa7

Please sign in to comment.