From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 9 Jan 2007 13:32:09 -0000 Subject: [Cluster-devel] cluster/cman/daemon commands.c Message-ID: <20070109133209.14605.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: pcaulfield at sourceware.org 2007-01-09 13:32:08 Modified files: cman/daemon : commands.c Log message: quorumdev_poll is in milliseconds, not seconds! Thanks to Simone Gotti Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.55.2.2&r2=1.55.2.3 --- cluster/cman/daemon/commands.c 2007/01/08 10:16:37 1.55.2.2 +++ cluster/cman/daemon/commands.c 2007/01/09 13:32:08 1.55.2.3 @@ -1042,7 +1042,7 @@ return; gettimeofday(&now, NULL); - if (quorum_device->last_hello.tv_sec + quorumdev_poll < now.tv_sec) { + if (quorum_device->last_hello.tv_sec + quorumdev_poll/1000 < now.tv_sec) { quorum_device->state = NODESTATE_DEAD; log_msg(LOG_INFO, "lost contact with quorum device\n"); recalculate_quorum(0);