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

Fix the duplicate of the result list #209

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lan-ce-lot
Copy link

Signed-off-by: Lancelot [email protected]

Describe what this PR does / why we need it

Fix the duplicate of the result list.

Does this pull request fix one issue?

Fixes #190.

Describe how you did it

By using a hash table to Record the filesystem that appears, if the filesystem already exists, it doesn't append.

Describe how to verify it

image

Before

image

after de-duplicated the resulting list.

image

Special notes for reviews

Copy link
Owner

@muesli muesli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just small cleanups, looks good otherwise!

main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@Lan-ce-lot Lan-ce-lot requested a review from muesli October 25, 2022 12:30
@C0rn3j
Copy link

C0rn3j commented Mar 3, 2024

@muesli Anything else this needs?

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

Successfully merging this pull request may close these issues.

When run duf with a path, result is not expected (linux_armv7 on rpi4)
3 participants