From: minima Date: Mon, 14 Oct 2002 13:03:57 +0000 (+0000) Subject: try to prevent surprises on non restarted but upgraded nodes X-Git-Tag: PRE-1-52~146 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=78f7e0cc760aee1a38c38c83187fc050576dfb14;p=spider.git try to prevent surprises on non restarted but upgraded nodes --- diff --git a/cmd/show/prefix.pl b/cmd/show/prefix.pl index df0f192c..b416bf4b 100644 --- a/cmd/show/prefix.pl +++ b/cmd/show/prefix.pl @@ -20,7 +20,7 @@ foreach $l (@list) { push @out, sprintf "%s DXCC: %d ITU: %d CQ: %d LL: %s %s (%s, %s)", uc $l, $a->dxcc, $a->itu, $a->cq, slat($a->lat), slong($a->long), $pre, $a->name; $l = " " x length $l; } - if ($ans[0]->state) { + if ($USDB::present && $ans[0]->state) { push @out, sprintf "%s City: %s State: %s", $l, join (' ', map {ucfirst} split(/\s+/, lc $ans[0]->city)), $ans[0]->state; } }