Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: tools by andrew from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Tue,  6 Jun 2006 10:50:17 -0600 (MDT)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: tools by andrew from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : andrew
Host    : 
Project : linux-ha
Module  : tools

Dir     : linux-ha/tools


Modified Files:
        pingd.c 


Log Message:
Always set a value (we used to delete the attribute if the ping count went to 0)

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/tools/pingd.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- pingd.c     30 May 2006 14:06:06 -0000      1.5
+++ pingd.c     6 Jun 2006 16:50:17 -0000       1.6
@@ -1,4 +1,4 @@
-/* $Id: pingd.c,v 1.5 2006/05/30 14:06:06 andrew Exp $ */
+/* $Id: pingd.c,v 1.6 2006/06/06 16:50:17 andrew Exp $ */
 
 /* 
  * Copyright (C) 2004 Andrew Beekhof <[EMAIL PROTECTED]>
@@ -372,9 +372,7 @@
        g_hash_table_foreach(ping_nodes, count_ping_nodes, &num_active);
        crm_info("%d active ping nodes", num_active);
 
-       if(num_active > 0) {
-               ha_msg_add_int(update, F_ATTRD_VALUE, 
attr_multiplier*num_active);
-       }
+       ha_msg_add_int(update, F_ATTRD_VALUE, attr_multiplier*num_active);
        
        if(attr_set != NULL) {
                ha_msg_add(update, F_ATTRD_SET,     attr_set);




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 31, Issue 15
********************************************

Reply via email to