Merge remote-tracking branch 'origin/main' into add_time_helpers

This commit is contained in:
Robin Müller 2023-01-14 17:29:56 +01:00
commit 5c6c016e13
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 5 additions and 5 deletions

View File

@ -14,11 +14,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
from `chrono::DateTime<Utc>` and a generic UNIX timestamp (`i64` seconds
and subsecond milliseconds).
# [v0.4.1] 14.01.2023
## Fixed
- CDS timestamp: The conversion function from the current time were buggy
when specifying picoseconds precision, which could lead to overflow
multiplications and incorrect precision fields.
multiplications and/or incorrect precision fields.
# [v0.4.0] 10.01.2023

View File

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

View File

@ -313,9 +313,7 @@ impl ConversionFromNow {
));
}
SubmillisPrecision::Picoseconds(_) => {
prec = Some(SubmillisPrecision::Picoseconds(
(now.subsec_nanos() * 1000),
));
prec = Some(SubmillisPrecision::Picoseconds(now.subsec_nanos() * 1000));
}
_ => (),
}