mirror of
https://github.com/schoebel/mars
synced 2024-12-13 10:15:34 +00:00
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($size, "$resdir/syncstatus-$host");
|
||||
my $startnr = get_link("$resdir/maxnr", 2);
|
||||
if (defined($startnr) && $startnr > 0) {
|
||||
if (defined($startnr) && $startnr ne "" && $startnr > 0) {
|
||||
$startnr += 1000;
|
||||
} else {
|
||||
$startnr = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user