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

Add information about the cache #246

Merged
merged 3 commits into from
Sep 23, 2023

Conversation

RyuzakiKK
Copy link
Contributor

  • Add information about the cache

    When using desync info it might be useful to have additional
    information regarding your local cache.

    For example knowing the amount of chunks that can be picked up by your
    cache can be used as a metric to ensure the cache is actually working as
    expected.

    With this commit we add in-cache to print the number of chunks that
    the cache already has, not-in-seed-nor-cache with the number of chunks
    that needs to be downloaded from the store and finally
    dedup-size-not-in-seed-nor-cache with the size of the chunks that
    needs to be downloaded from the store.

  • Reduce code duplication in info_test

  • Add info test with cache and without a seed

When using `desync info` it might be useful to have additional
information regarding your local cache.

For example knowing the amount of chunks that can be picked up by your
cache can be used as a metric to ensure the cache is actually working as
expected.

With this commit we add `in-cache` to print the number of chunks that
the cache already has, `not-in-seed-nor-cache` with the number of chunks
that needs to be downloaded from the store and finally
`dedup-size-not-in-seed-nor-cache` with the size of the chunks that
needs to be downloaded from the store.

Signed-off-by: Ludovico de Nittis <[email protected]>
Signed-off-by: Ludovico de Nittis <[email protected]>
@folbricht
Copy link
Owner

Thank you

@folbricht folbricht merged commit 9969b7a into folbricht:master Sep 23, 2023
3 checks passed
@RyuzakiKK RyuzakiKK deleted the additional_info branch September 25, 2023 08:17
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.

2 participants