dat
dat copied to clipboard
Improve peer count - show total and users sending data
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
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.
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?)
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.
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](https://user-images.githubusercontent.com/684965/38053499-1b7713fa-3289-11e8-813d-1983b89de6c9.png)
Using the --sources
option it adds more information, IP address, ports, errors, closed peers:
![screen shot 2018-03-28 at 1 09 27 pm](https://user-images.githubusercontent.com/684965/38053595-60a619da-3289-11e8-89bb-30bf193477c3.png)
(Fixed spelling of transferred in code)
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).