[TS-3735]: Coverity CID 1309075 - Incorrect expression.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/785439f0 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/785439f0 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/785439f0 Branch: refs/heads/master Commit: 785439f0bde62f43bc2e7df0d49e77c42a3c0f79 Parents: 946fc24 Author: Sudheer Vinukonda <[email protected]> Authored: Thu Jul 2 15:26:19 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Thu Jul 2 15:26:19 2015 +0000 ---------------------------------------------------------------------- iocore/net/SSLNetVConnection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/785439f0/iocore/net/SSLNetVConnection.cc ---------------------------------------------------------------------- diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc index 9b1570c..1f965fe 100644 --- a/iocore/net/SSLNetVConnection.cc +++ b/iocore/net/SSLNetVConnection.cc @@ -466,7 +466,7 @@ SSLNetVConnection::net_read_io(NetHandler *nh, EThread *lthread) readSignalError(nh, err); } else if (ret == SSL_HANDSHAKE_WANT_READ || ret == SSL_HANDSHAKE_WANT_ACCEPT || ret == EVENT_CONT) { if (SSLConfigParams::ssl_handshake_timeout_in > 0) { - double handshake_time = ((Thread::get_hrtime() - sslHandshakeBeginTime) / 1000000000); + double handshake_time = ((double)(Thread::get_hrtime() - sslHandshakeBeginTime) / 1000000000); Debug("ssl", "ssl handshake for vc %p, took %.3f seconds, configured handshake_timer: %d", this, handshake_time, SSLConfigParams::ssl_handshake_timeout_in); if (handshake_time > SSLConfigParams::ssl_handshake_timeout_in) {
