dat icon indicating copy to clipboard operation
dat copied to clipboard

Improve peer count - show total and users sending data

Open joehand opened this issue 7 years ago • 5 comments

From @maxogden on January 26, 2017 23:4

The peer count is kinda inaccurate right now, has been confusing beta users

Copied from original issue: joehand/dat-next#108

joehand avatar Feb 06 '17 22:02 joehand

Also don't count if you are not actually receive content data from them. It'll be confusing if you have 5 peers but they're all just metadata.

joehand avatar Feb 07 '17 01:02 joehand

We can use the new dat-node API in 1.4.0 to show:

  • Total Peers
  • Peers downloading from (for downloads)
  • Peers with 100% data (for share or sync?)

joehand avatar Mar 09 '17 01:03 joehand

Need to go through updated API for this.

For now, the --sources option shows some of this, for debugging. Will look at this after the dat push which will have some peer stuff needed for it.

joehand avatar Jun 28 '17 23:06 joehand

Added information for how much has been uploaded to each peer. By default, it looks like:

screen shot 2018-03-28 at 1 08 02 pm

Using the --sources option it adds more information, IP address, ports, errors, closed peers:

screen shot 2018-03-28 at 1 09 27 pm

(Fixed spelling of transferred in code)

joehand avatar Mar 28 '18 20:03 joehand

I came here to report the need for this, glad it's there! I think this should be the default behavior (at least showing total uploaded).

Miserlou avatar Aug 06 '19 09:08 Miserlou