2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

modify depending on xiaopeng's new comments

This commit is contained in:
hu-weihua
2016-06-28 22:17:04 -04:00
parent 1542879a7b
commit 5d45460c1b
2 changed files with 6 additions and 2 deletions

View File

@@ -814,7 +814,11 @@ sub do_monitor {
$SIG{TERM} = $SIG{INT} = sub {
$terminal = 1;
};
#check pre_defined node should be done during "do_pre_check" part.
#if we use '--noprecheck' to skip pre_check(include pre_defined node checking)
#then go to monitor directly, we should do pre_defined node checking
#here if noderange and discovery_type are specified.
if ($no_pre_check && defined($noderange) && defined($discovery_type)) {
$msg = "All pre_defined nodes are valid";
my $rc = check_pre_defined_node($discovery_type, $noderange);

View File

@@ -189,7 +189,7 @@ sub listvalidsubcmd {
}
$maxlen += 4;
my $desiredwidth = 100;
my $desiredwidth = 120;
my $screenwidth = (`tput cols` + 0);
my $finallen = ($screenwidth > $desiredwidth ? $desiredwidth : $screenwidth);