diskusage icon indicating copy to clipboard operation
diskusage copied to clipboard

Do not output excess results

Open aleksaan opened this issue 3 years ago • 0 comments

Sergey Glaznitsa: Do not render excess results. Example of current results (limit=2): C:\a - 100Mb C:\a\b - 99Mb (C:\x - 30Mb - do not output because is less than a & b folders.)

Output has two rows with the same folder. However folder c:\a contains (without C:\a\b) only 1Mb of its 100Mb volume. Only 1% of volume. And folder C:\a\b contains 99% of volume. It is not nessesary to output c:\a volume in this case. Results should be like that: C:\a\b - 99Mb C:\x - 30Mb (C:\a - 100Mb - do not output because its "clean" size (without C:\a\b) only 1Mb and other 99Mb has been printed yet above for c:\a\b folder)

Second example: C:\a - 100Mb (clean size is 51Mb) C:\a\b - 49Mb (C:\x - 30Mb - do not output because is less than a (clean size) & b size)

C:\a "clean" volume (without C:\a\b) is 51Mb and that is reason to include c:\a to results.

aleksaan avatar Nov 25 '20 09:11 aleksaan