chiusura se nno channels din ain etc
This commit is contained in:
@@ -140,7 +140,7 @@ sub trxelab {
|
|||||||
) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
||||||
|
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
if ( $sth->rows < 0 ) {
|
if ( $sth->rows eq 0 ) {
|
||||||
die getTimeStamp("log") . " - pid $$ >> No unit ftp params selected.\n";
|
die getTimeStamp("log") . " - pid $$ >> No unit ftp params selected.\n";
|
||||||
}else {
|
}else {
|
||||||
while ( my $results = $sth->fetchrow_hashref ) {
|
while ( my $results = $sth->fetchrow_hashref ) {
|
||||||
@@ -245,7 +245,7 @@ sub getNodesType {
|
|||||||
|
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
print getTimeStamp("log"). " - pid $$ >> $unit - $tool: " . $sth->rows . " rows selected to get node type/Ain/Din/channels.\n";
|
print getTimeStamp("log"). " - pid $$ >> $unit - $tool: " . $sth->rows . " rows selected to get node type/Ain/Din/channels.\n";
|
||||||
if ( $sth->rows < 0 ) {
|
if ( $sth->rows eq 0 ) {
|
||||||
die getTimeStamp("log") . " - pid $$ >> No node channels selected.\n";
|
die getTimeStamp("log") . " - pid $$ >> No node channels selected.\n";
|
||||||
}else {
|
}else {
|
||||||
my $row = 0;
|
my $row = 0;
|
||||||
@@ -272,7 +272,7 @@ sub getUdbPwd {
|
|||||||
or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
||||||
|
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
if ( $sth->rows < 0 ) {
|
if ( $sth->rows eq 0 ) {
|
||||||
die getTimeStamp("log") . " - pid $$ >> No password selected.\n";
|
die getTimeStamp("log") . " - pid $$ >> No password selected.\n";
|
||||||
}else {
|
}else {
|
||||||
my $results = $sth->fetchrow_hashref;
|
my $results = $sth->fetchrow_hashref;
|
||||||
@@ -301,7 +301,7 @@ sub getMatlabCmd {
|
|||||||
) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
) or die getTimeStamp("log") . " - pid $$ >> $DBI::errstr";
|
||||||
|
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
if ( $sth->rows < 0 ) {
|
if ( $sth->rows eq 0 ) {
|
||||||
die getTimeStamp("log"). " - pid $$ >> No tool's matlab function selected.\n";
|
die getTimeStamp("log"). " - pid $$ >> No tool's matlab function selected.\n";
|
||||||
}else {
|
}else {
|
||||||
while ( my $results = $sth->fetchrow_hashref ) {
|
while ( my $results = $sth->fetchrow_hashref ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user