err, yeah. That wasn't right. Use this one.
Regards Dominik Dominik Klein wrote: > Minor Update. Just noticed it doesn't display stickiness=0 if stickiness > is unset. So failcound and migration-threshold columns were mixed up. > > Patch against stable-1.0 > > Regards > Dominik
exporting patch: # HG changeset patch # User Dominik Klein <d...@in-telegence.net> # Date 1268640251 -3600 # Branch stable-1.0 # Node ID 8b225afc39a8ff1849064aba4844f8cd6d609ee6 # Parent 3d4d3e5280b38d15c4baf77a9c576db658261132 Low: extra/showscores.sh Correctly display stickiness if unset diff -r 3d4d3e5280b3 -r 8b225afc39a8 extra/showscores.sh --- a/extra/showscores.sh Fri Mar 12 15:33:43 2010 +0100 +++ b/extra/showscores.sh Mon Mar 15 09:04:11 2010 +0100 @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (C) 2008-2009 Dominik Klein +# Copyright (C) 2008-2010 Dominik Klein # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -48,6 +48,7 @@ fi export default_stickiness=`crm_attribute -G -n default-resource-stickiness -Q 2>/dev/null` +if [ -z "$default_stickiness" ]; then default_stickiness=0; fi export default_migrationthreshold=`crm_attribute -G -n migration-threshold -t rsc_defaults -Q 2>/dev/null` if [ -n "$1" -a "$1" != "node" ]
_______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker