-Skip abbreviating single nodes to one-sized groups

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-04-24 12:45:06 +00:00
parent 7fd9270d00
commit 863888a7ab

View File

@ -264,6 +264,8 @@ sub abbreviate_noderange {
}
foreach $group (keys %grouphash) {
#skip single node sized groups, these outliers frequently pasted into non-noderange capable contexts
if (scalar @{$grouphash{$group}} < 2) { next; }
push @{$sizedgroups{scalar @{$grouphash{$group}}}},$group;
}
my $node;