Bug 431367

Summary: File size counter whilst scan is running is not reset on rescan
Product: [Applications] filelight Reporter: Stephan Brunner <s.brunner>
Component: generalAssignee: Martin Sandsmark <martin.sandsmark>
Status: RESOLVED DUPLICATE    
Severity: minor CC: jpmbatrina01, justin.zobel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video

Description Stephan Brunner 2021-01-09 20:12:16 UTC
FILELIGHT VERSION: 20.12.1 (I couldn't select it in the list above.

SUMMARY
When scanning a directory, there is a animated pie chart with a file count and file size counter.
When hitting rescan, said file size counter is not reset to zero, hence making it count beyond the actual file system size.
The final counter in the final pie chart always shows a correct size.

STEPS TO REPRODUCE
0. Open fresh instance of Filelight
1. Scan a directory. Observe that the file size counter whilst scanning starts from zero
2. Hit rescan
3. Observe that the file size counter whilst scanning does not start from zero

OBSERVED RESULT
Counter is not reset to zero when hitting rescan.

EXPECTED RESULT
Counter should start from zero.

SOFTWARE/OS VERSIONS
Latest Archlinux as of 2021-01-09
Linux/KDE Plasma: Kernel 5.10.5-arch1-1
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Comment 1 Justin Zobel 2021-01-15 01:00:15 UTC
Created attachment 134870 [details]
Video

I can't seem to reproduce this. I tried on several sized folders and the count is always blanked out and then redrawn once the count is complete.

Video attached.
Comment 2 Stephan Brunner 2021-01-15 08:57:25 UTC
Actually, you reproduced it.

The selected folder is ~11GB large.
However, when rescanning, your counter in the video  starts at ~105GB.
Stop at 0:06 while the rescan is running.
Comment 3 Jan Paul Batrina 2021-09-11 11:44:44 UTC

*** This bug has been marked as a duplicate of bug 439596 ***