Fabian Vogt
9a8b2f55a9
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kio?expand=0&rev=243
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 0362f77d51b2fc9c784ab8fa751ee6ffac33eb00 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Mon, 14 Jan 2019 13:31:39 +0100
|
|
Subject: [PATCH 1/2] Revert "Fix elapsed time check"
|
|
|
|
This reverts commit cd2f67c39b25de026390bfe2bc1c7aa269f78ccb.
|
|
In preparation for reverting the calcSpeed rewrite.
|
|
---
|
|
src/core/slaveinterface.cpp | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/src/core/slaveinterface.cpp b/src/core/slaveinterface.cpp
|
|
index d79b498d..6eb2b08d 100644
|
|
--- a/src/core/slaveinterface.cpp
|
|
+++ b/src/core/slaveinterface.cpp
|
|
@@ -103,9 +103,7 @@ void SlaveInterface::calcSpeed()
|
|
// using first and last item from the list.
|
|
|
|
const qint64 elapsed_time = d->elapsed_timer.elapsed();
|
|
- const qint64 last_time = d->transfer_details.isEmpty() ? 0 : d->transfer_details.last().time;
|
|
-
|
|
- if (elapsed_time - last_time >= 900) {
|
|
+ if (elapsed_time >= 900) {
|
|
if (d->transfer_details.count() == max_count) {
|
|
d->transfer_details.removeFirst();
|
|
}
|
|
--
|
|
2.20.1
|
|
|