1
0
Fork 0

Rearrange reflector counting.

ycs232-kbc
Jonathan Naylor 8 years ago
parent 2a1223d0f7
commit 4b022094ca

@ -115,6 +115,9 @@ bool CReflectors::load()
::fclose(fp); ::fclose(fp);
} }
size_t size = m_reflectors.size();
LogInfo("Loaded %u YSF reflectors", size);
// Add the Parrot entry // Add the Parrot entry
if (m_parrotPort > 0U) { if (m_parrotPort > 0U) {
CYSFReflector* refl = new CYSFReflector; CYSFReflector* refl = new CYSFReflector;
@ -125,16 +128,15 @@ bool CReflectors::load()
refl->m_port = m_parrotPort; refl->m_port = m_parrotPort;
refl->m_count = "000"; refl->m_count = "000";
m_reflectors.push_back(refl); m_reflectors.push_back(refl);
LogInfo("Loaded YSF parrot");
} }
size_t size = m_reflectors.size(); size = m_reflectors.size();
if (size == 0U) if (size == 0U)
return false; return false;
std::sort(m_reflectors.begin(), m_reflectors.end(), refComparison); std::sort(m_reflectors.begin(), m_reflectors.end(), refComparison);
LogInfo("Loaded %u YSF reflectors", size);
return true; return true;
} }

Loading…
Cancel
Save