Summary: | Display graph of transfer speed over time for file operations | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Zakhar <zakhar.nasimov> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | andreas_k, bizyaev, bugseforuns, elvis.angelaccio, kde.milrind, kde, kdelibs-bugs-null, meven29, nate, plasma-bugs-null, postix |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/8a8953dd9a92318d8079849e65f94b47af2f078a | Version Fixed In: | 6.4.0 |
Sentry Crash Report: |
Description
Zakhar
2018-02-28 00:39:31 UTC
The problem is in KIO which manages such jobs. Copy job creates a subjob for every file it copies, however, they only report speed after 1 seconds at which point the job has already finished and the next one started. This is why you can see transfer rate for large files but not when copying many small ones. As for the graph, that has to be done in plasmashell's notification center (I'm its maintainer and am actually a huge fan of this modern Windows copy dialog) but we first need to figure out how to actually get that data to the application in the first place. > (I'm its maintainer and am actually a huge fan of this modern Windows copy dialog)
+1, me too. It's really nice.
> however, they only report speed after 1 seconds
KIO file_unix::copy reports progress 10 times a second or every 512KB, they could some issues elsewhere.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1737 Git commit 0d701bcf51bd603763304235b4a37d063decdb75 by Méven Car. Committed on 15/10/2024 at 08:06. Pushed by meven into branch 'master'. core/copyjob: report speed when copying multiple files The speed measurement is done in WorkerInterface::calcSpeed currently. Except it can only measurement for a single file operation. Add a speed measurement to CopyJob so copying speed is properly reported even when copying multiple files, each taking less than a second to copy. The speed is smoothed accross the last 8 seconds. M +24 -0 src/core/copyjob.cpp https://invent.kde.org/frameworks/kio/-/commit/0d701bcf51bd603763304235b4a37d063decdb75 A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4851 *** Bug 494564 has been marked as a duplicate of this bug. *** Git commit 8a8953dd9a92318d8079849e65f94b47af2f078a by Nate Graham, on behalf of Méven Car. Committed on 14/03/2025 at 14:37. Pushed by ngraham into branch 'master'. applets/notifications: show a speed graph for file operations Uses KQuickCharts and appears in details mode. FIXED-IN: 6.4.0 M +1 -1 applets/notifications/package/contents/ui/components/JobDetails.qml M +7 -34 applets/notifications/package/contents/ui/components/JobItem.qml A +248 -0 applets/notifications/package/contents/ui/components/SpeedChart.qml [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)] M +5 -0 libnotificationmanager/job.cpp M +5 -0 libnotificationmanager/job.h M +13 -1 libnotificationmanager/job_p.cpp M +2 -0 libnotificationmanager/job_p.h https://invent.kde.org/plasma/plasma-workspace/-/commit/8a8953dd9a92318d8079849e65f94b47af2f078a |