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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user