Permalink
Browse files

Fix #373 wrong remote host counting

Each duplicate host from config of distr indexes was added as
separate one. Now all dupes are counted as one.
  • Loading branch information...
klirichek committed Aug 14, 2018
1 parent 53deecf commit cad9b9c617719aad97e9f5a2ae93491153d8e504
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/searchdha.cpp
@@ -1249,7 +1249,7 @@ void cDashStorage::LinkHost ( HostDesc_t &dHost )
ARRAY_FOREACH ( i, m_dDashes )
{
auto pDash = m_dDashes[i];
if ( dHost.m_pDash && dHost.GetMyUrl ()==pDash->m_tHost.GetMyUrl () )
if ( dHost.GetMyUrl ()==pDash->m_tHost.GetMyUrl () )
dHost.m_pDash = pDash;
else if ( pDash->IsLast () )
{

0 comments on commit cad9b9c

Please sign in to comment.