| 305 | } |
| 306 | |
| 307 | std::string Server::ServerPrefix() const { |
| 308 | if(_options.server_info_name.empty()) { |
| 309 | return butil::string_printf("%s_%d", g_server_info_prefix, listen_address().port); |
| 310 | } else { |
| 311 | return std::string(g_server_info_prefix) + "_" + _options.server_info_name; |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | void* Server::UpdateDerivedVars(void* arg) { |
| 316 | const int64_t start_us = butil::cpuwide_time_us(); |
no test coverage detected