[dolphin] [Bug 508376] New: Average speed calculation includes skipped items, and seems to be 32bit

Nicklas bugzilla_noreply at kde.org
Sun Aug 17 10:46:18 BST 2025


https://bugs.kde.org/show_bug.cgi?id=508376

            Bug ID: 508376
           Summary: Average speed calculation includes skipped items, and
                    seems to be 32bit
    Classification: Applications
           Product: dolphin
      Version First 25.08.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: nicknielsen1995 at hotmail.com
                CC: kfm-devel at kde.org
  Target Milestone: ---

Created attachment 184174
  --> https://bugs.kde.org/attachment.cgi?id=184174&action=edit
Screenshot of dolphin notification with negative speed, i suspect is caused by
integer overflow

SUMMARY
If you transfer multiple files from one location to another and some of the
files are already present, dolphin asks to skip or overwrite, if you select
skip, the average speed quickly jumps up, as if it actually transferred the
skipped files instantaneously.
Then i observe the second problem that the average speed seems to be calculated
as a 64bit integer but displayed as a 32bit integer, because when the average
speed goes high enough it overflows from ~2.1GiB/s to -2.1GiB/s, but if i leave
the transfer for long enough with the real lower speed, the average speed will
slowly drop closer to the correct value, sometimes underflowing multiple times
before reaching a more realistic average speed.
To me that proves that the underlying average speed calculation is 64bit.
2.1GiB/s seems like it would be enough for anyone but i think you could
saturate it with a 25gbit nic, not that much hardware existing now could keep
up with that but being future proof is not bad.
I suspect that if the first problem is fixed, nobody will see the second
problem in the next many years. 


STEPS TO REPRODUCE
1. Get folder full of smaller files large enough to allow you to see the file
transfer notification (I was using a network share, that capped the speed to
1gbit).
2. Transfer the entire folder to target location.
3. Delete a couple of files from the target copy.
4. Repeat the transfer to the target location, select "Write Into" and "Skip"
and use apply to all.
5. While the last items you deleted are transferring the average speed in the
notification should be showing incorrect numbers.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 42 Kernel 6.15.9-201.fc42.x86_64 (64-bit)
KDE Plasma Version:  6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list