diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-10-06 18:56:32 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-10-06 18:56:32 +0400 |
commit | 94dfefef6e3e40fee5869dca26f4e0fad21c5b52 (patch) | |
tree | 87787684b0b149f1442b640464a7131c0d2d6dd1 | |
parent | 25eb12fb2cb4f3c35ca0bc096313b353d834378d (diff) |
Bugfix.2.0.6
-rw-r--r-- | library.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -681,9 +681,7 @@ PHPAPI int redis_sock_connect(RedisSock *redis_sock TSRMLS_DC) } tv.tv_sec = (time_t)redis_sock->timeout; - tv.tv_usec = (redis_sock->timeout - tv.tv_sec) * 1000000; - - printf("tv_sec=%d, tv_usec=%d\n", (int)tv.tv_sec, (int)tv.tv_usec); + tv.tv_usec = ((int)(redis_sock->timeout - tv.tv_sec)) * 1000000; host_len = spprintf(&host, 0, "%s:%d", redis_sock->host, redis_sock->port); |