]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_pgsql.c switch_pgsql_next_result_timed() was using switch_time_now() for...
authorChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 7 Oct 2014 13:33:19 +0000 (09:33 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 7 Oct 2014 13:33:19 +0000 (09:33 -0400)
src/switch_pgsql.c

index ccf64d1503e67e3a42cebae8ec7e17ade9677c6d..74eea5cb8eec99227899b5f583b02a5371e6febd 100644 (file)
@@ -305,7 +305,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_next_result_timed(switch_pgsq
                if (PQisBusy(handle->con)) {
 
                        /* Wait for a result to become available, up to msec milliseconds */
-                       start = switch_time_now();
+                       start = switch_micro_time_now();
                        while((ctime = switch_micro_time_now()) - start <= usec) {
                                int wait_time = (usec - (ctime - start)) / 1000;
                                fds[0].fd = handle->sock;