Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

stats for selective downloads #166

Open
joehand opened this issue Aug 3, 2017 · 1 comment
Open

stats for selective downloads #166

joehand opened this issue Aug 3, 2017 · 1 comment

Comments

@joehand
Copy link
Collaborator

joehand commented Aug 3, 2017

The stats should track how much data you've requested, along with the total. This will allow us to show progress for selective downloads:

(in hypercore) might be as easy to making ._selections -> .selections

Also, having total data for inflightRequests may also be useful here:

mafintosh> jhand: each peer object has an inflightRequests array, /~https://github.com/mafintosh/hypercore/blob/master/lib/replicate.js#L53
mafintosh> jhand: we can add a getter on the feed instance that adds the legnth of all those together
@okdistribute
Copy link
Collaborator

Yeah, it'd be awesome if we didn't have to track this up front but relied on hypercore's replication to know how many files are being requested!

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

No branches or pull requests

2 participants