Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not output excess results #29

Open
aleksaan opened this issue Nov 25, 2020 · 1 comment
Open

Do not output excess results #29

aleksaan opened this issue Nov 25, 2020 · 1 comment

Comments

@aleksaan
Copy link
Owner

aleksaan commented Nov 25, 2020

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 aleksaan changed the title Do not render excess results Do not output excess results Nov 25, 2020
@johngrant4est
Copy link

# create results_a.txt
./duck_a.exe -path="C:\program files" > results_a.txt

# now do the analysis
./duck_f.exe -depth=1 -size=c -top=10 -filter=d Get-Content results_a.txt | Out-File results_f.txt

Hangs and has to be closed after > 1 hour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants