dat-node icon indicating copy to clipboard operation
dat-node copied to clipboard

stats for selective downloads

Open joehand opened this issue 6 years ago • 1 comments

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

joehand avatar Aug 03 '17 18:08 joehand

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!

okdistribute avatar Aug 03 '17 20:08 okdistribute