Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-10-06 18:56:32 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-10-06 18:56:32 +0400
commit94dfefef6e3e40fee5869dca26f4e0fad21c5b52 (patch)
tree87787684b0b149f1442b640464a7131c0d2d6dd1
parent25eb12fb2cb4f3c35ca0bc096313b353d834378d (diff)
Bugfix.2.0.6
-rw-r--r--library.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/library.c b/library.c
index 728ae094..4ad32b8f 100644
--- a/library.c
+++ b/library.c
@@ -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);