Skip to content

Commit

Permalink
Merge pull request #339 from NordSecurity/msz/FILE-611-in-the-ffi-lay…
Browse files Browse the repository at this point in the history
…er-seconds-are-incorrectly-converted-to-seconds

Fix incorrect timestamp conversion
  • Loading branch information
matszczygiel authored Jul 16, 2024
2 parents 77c3269 + 01d7120 commit 54aaab9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Remove support for deprecated, unsecure protocols V1, V2, V4 and V5
* Sanitize file ID before downloading a file, to prevent the temporary file from being allowed to traverse parent dirs
* Implement automatic transfer cancellation when all files reach the terminal state
* Fix incorrect timestamp conversions in `purge_transfers_until()` and `transfers_since()`

---
<br>
Expand Down
4 changes: 2 additions & 2 deletions norddrop/src/uni.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl NordDrop {
self.dev
.lock()
.expect("Poisoned lock")
.purge_transfers_until(until / 100)
.purge_transfers_until(until / 1000)
}

pub fn transfers_since(&self, since: i64) -> Result<Vec<TransferInfo>> {
Expand All @@ -107,7 +107,7 @@ impl NordDrop {
.dev
.lock()
.expect("Poisoned lock")
.transfers_since(since / 100)?;
.transfers_since(since / 1000)?;

let xfers = infos.into_iter().map(TransferInfo::from).collect();
Ok(xfers)
Expand Down

0 comments on commit 54aaab9

Please sign in to comment.