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

This commit is contained in:
Robin Müller 2023-01-14 17:46:43 +01:00
parent 1c702f933f
commit aa5c206c1c
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
# [unreleased]
# [v0.4.2] 14.01.2023
## Fixed
- CDS timestamp: Fixed another small logic error for stamp creation from the current
time with picosecond precision.
# [v0.4.1] 14.01.2023
## Fixed

View File

@ -1,6 +1,6 @@
[package]
name = "spacepackets"
version = "0.4.1"
version = "0.4.2"
edition = "2021"
rust-version = "1.60"
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]

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));
}
_ => (),
}