nghttpx: Fix erroneous division by sizeof(...)
This commit is contained in:
parent
e85bc70bef
commit
3d00dd6537
|
@ -754,8 +754,7 @@ Http2Session *ClientHandler::select_http2_session(DownstreamAddrGroup &group) {
|
||||||
if (LOG_ENABLED(INFO)) {
|
if (LOG_ENABLED(INFO)) {
|
||||||
CLOG(INFO, this) << "Selected DownstreamAddr=" << selected_addr
|
CLOG(INFO, this) << "Selected DownstreamAddr=" << selected_addr
|
||||||
<< ", index="
|
<< ", index="
|
||||||
<< (selected_addr - shared_addr->addrs.data()) /
|
<< (selected_addr - shared_addr->addrs.data());
|
||||||
sizeof(*selected_addr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected_addr->http2_extra_freelist.size()) {
|
if (selected_addr->http2_extra_freelist.size()) {
|
||||||
|
|
Loading…
Reference in New Issue