feat(p2p): files search also

This commit is contained in:
Alexey Kasyanchuk
2018-02-17 20:04:54 +03:00
parent 98f0404869
commit c33f927a7d
4 changed files with 32 additions and 7 deletions

View File

@ -239,7 +239,7 @@ class Spider extends Emiter {
if(this.client && !this.ignore) {
cpuDebug('cpu usage:' + cpuUsage())
if(this.cpuLimit <= 0 || cpuUsage() <= this.cpuLimit + this.cpuInterval) {
// this.client.add(addressPair, infohash);
this.client.add(addressPair, infohash);
}
}
}