| 228 | } |
| 229 | |
| 230 | std::string ServerItem::getAddrName() const { |
| 231 | if (name.size() <= 0) { |
| 232 | return std::string(""); |
| 233 | } |
| 234 | return TextUtils::format("%s:%d", name.c_str(), ntohs(ping.serverId.port)); |
| 235 | } |
| 236 | |
| 237 | unsigned int ServerItem::getSortFactor() const { |
| 238 | // if null ping we return a 0 player count |
no test coverage detected