mirror of https://github.com/schoebel/mars
marsadm: fix warning
This commit is contained in:
parent
a43181a84f
commit
1cb78bae47
|
@ -1283,7 +1283,7 @@ sub create_res {
|
||||||
set_link($host, "$resdir/primary");
|
set_link($host, "$resdir/primary");
|
||||||
set_link($size, "$resdir/syncstatus-$host");
|
set_link($size, "$resdir/syncstatus-$host");
|
||||||
my $startnr = get_link("$resdir/maxnr", 2);
|
my $startnr = get_link("$resdir/maxnr", 2);
|
||||||
if (defined($startnr) && $startnr > 0) {
|
if (defined($startnr) && $startnr ne "" && $startnr > 0) {
|
||||||
$startnr += 1000;
|
$startnr += 1000;
|
||||||
} else {
|
} else {
|
||||||
$startnr = 1;
|
$startnr = 1;
|
||||||
|
|
Loading…
Reference in New Issue