Bug 508376 - Average speed calculation includes skipped items, and seems to be 32bit
Summary: Average speed calculation includes skipped items, and seems to be 32bit
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-17 09:46 UTC by Nicklas
Modified: 2025-08-17 09:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of dolphin notification with negative speed, i suspect is caused by integer overflow (7.16 KB, image/png)
2025-08-17 09:46 UTC, Nicklas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicklas 2025-08-17 09:46:18 UTC
Created attachment 184174 [details]
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