Skip to content

Commit 066b83b

Browse files
authored
Merge pull request #339 from NordSecurity/msz/FILE-611-in-the-ffi-layer-seconds-are-incorrectly-converted-to-seconds
Fix incorrect timestamp conversion
2 parents 65c0a99 + a075e3b commit 066b83b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Remove support for deprecated, unsecure protocols V1, V2, V4 and V5
55
* Sanitize file ID before downloading a file, to prevent the temporary file from being allowed to traverse parent dirs
66
* Implement automatic transfer cancellation when all files reach the terminal state
7+
* Fix incorrect timestamp conversions in `purge_transfers_until()` and `transfers_since()`
78

89
---
910
<br>

norddrop/src/uni.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl NordDrop {
9797
self.dev
9898
.lock()
9999
.expect("Poisoned lock")
100-
.purge_transfers_until(until / 100)
100+
.purge_transfers_until(until / 1000)
101101
}
102102

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

112112
let xfers = infos.into_iter().map(TransferInfo::from).collect();
113113
Ok(xfers)

0 commit comments

Comments
 (0)