Skip to content

Commit 01d7120

Browse files
committed
Fix incorrect timestamp conversion
Signed-off-by: Mateusz Szczygieł <[email protected]>
1 parent 77c3269 commit 01d7120

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)