Rearrange reflector counting.
This commit is contained in:
parent
2a1223d0f7
commit
4b022094ca
1 changed files with 5 additions and 3 deletions
|
@ -115,6 +115,9 @@ bool CReflectors::load()
|
|||
::fclose(fp);
|
||||
}
|
||||
|
||||
size_t size = m_reflectors.size();
|
||||
LogInfo("Loaded %u YSF reflectors", size);
|
||||
|
||||
// Add the Parrot entry
|
||||
if (m_parrotPort > 0U) {
|
||||
CYSFReflector* refl = new CYSFReflector;
|
||||
|
@ -125,16 +128,15 @@ bool CReflectors::load()
|
|||
refl->m_port = m_parrotPort;
|
||||
refl->m_count = "000";
|
||||
m_reflectors.push_back(refl);
|
||||
LogInfo("Loaded YSF parrot");
|
||||
}
|
||||
|
||||
size_t size = m_reflectors.size();
|
||||
size = m_reflectors.size();
|
||||
if (size == 0U)
|
||||
return false;
|
||||
|
||||
std::sort(m_reflectors.begin(), m_reflectors.end(), refComparison);
|
||||
|
||||
LogInfo("Loaded %u YSF reflectors", size);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue