nghttpx: Fix erroneous division by sizeof(...)

This commit is contained in:
Tatsuhiro Tsujikawa 2016-04-24 17:42:24 +09:00
parent e85bc70bef
commit 3d00dd6537
1 changed files with 1 additions and 2 deletions

View File

@ -754,8 +754,7 @@ Http2Session *ClientHandler::select_http2_session(DownstreamAddrGroup &group) {
if (LOG_ENABLED(INFO)) {
CLOG(INFO, this) << "Selected DownstreamAddr=" << selected_addr
<< ", index="
<< (selected_addr - shared_addr->addrs.data()) /
sizeof(*selected_addr);
<< (selected_addr - shared_addr->addrs.data());
}
if (selected_addr->http2_extra_freelist.size()) {