another small bugfix
Some checks are pending
Rust/spacepackets/pipeline/head Build queued...

This commit is contained in:
2023-01-14 17:46:43 +01:00
parent 1c702f933f
commit aa5c206c1c
3 changed files with 9 additions and 2 deletions

View File

@ -170,7 +170,7 @@ impl ConversionFromNow {
));
}
SubmillisPrecision::Picoseconds(_) => {
prec = Some(SubmillisPrecision::Picoseconds(now.subsec_nanos() * 1000));
prec = Some(SubmillisPrecision::Picoseconds((now.subsec_nanos() % 10_u32.pow(6)) * 1000));
}
_ => (),
}