kio/Really-rate-limit-INF_PROCESSED_SIZE-messages.patch

42 lines
1.1 KiB
Diff
Raw Normal View History

From 801f58e7e76acd4bcb23d6e8092825cdda203a81 Mon Sep 17 00:00:00 2001
From: Kevin Funk <kfunk@kde.org>
Date: Tue, 22 Aug 2017 14:11:03 +0200
Subject: Really rate-limit INF_PROCESSED_SIZE messages
Summary:
Fixing an ancient porting bug which popped up when porting from Qt4 to
Qt5.
FIXED-IN: 5.38
BUG: 383843
Reviewers: dfaure
Reviewed By: dfaure
Subscribers: dfaure, #frameworks
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D7463
---
src/core/slavebase.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/slavebase.cpp b/src/core/slavebase.cpp
index 3778df8..149564b 100644
--- a/src/core/slavebase.cpp
+++ b/src/core/slavebase.cpp
@@ -535,7 +535,7 @@ void SlaveBase::processedSize(KIO::filesize_t _bytes)
emitSignal = true;
} else {
if (d->lastTimeout.isValid()) {
- emitSignal = d->lastTimeout.msecsTo(now); // emit size 10 times a second
+ emitSignal = d->lastTimeout.msecsTo(now) >= 100; // emit size 10 times a second
} else {
emitSignal = true;
}
--
cgit v0.11.2