summaryrefslogtreecommitdiff
path: root/utils/rhrd-sanity-check
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rhrd-sanity-check')
-rwxr-xr-xutils/rhrd-sanity-check18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/rhrd-sanity-check b/utils/rhrd-sanity-check
index 74c1191..9507f6b 100755
--- a/utils/rhrd-sanity-check
+++ b/utils/rhrd-sanity-check
@@ -44,25 +44,25 @@ sub check_showids
my $errors = 0,
print "showids:\n";
- my @show_ids = RHRD::rddb::list_showids($ctx);
- if(!defined $show_ids[0] && defined $show_ids[1]) {
- print STDERR "$show_ids[1]: $show_ids[2]";
+ my @showids = RHRD::rddb::list_showids($ctx);
+ if(!defined $showids[0] && defined $showids[1]) {
+ print STDERR "$showids[1]: $showids[2]";
return -1;
}
- for my $show_id (@show_ids) {
- my @carts = RHRD::rddb::get_show_carts($ctx, $show_id);
+ for my $showid (@showids) {
+ my @carts = RHRD::rddb::get_show_carts($ctx, $showid);
if(!defined $carts[0] && defined $carts[1]) {
- print " showid '" . $show_id . "': $carts[2]\n";
+ print " showid '" . $showid . "': $carts[2]\n";
$errors++;
}
if(scalar @carts == 0) {
- print " showid '" . $show_id . "': log is empty\n";
+ print " showid '" . $showid . "': log is empty\n";
$errors++;
}
- my ($group, $status, $errorstring) = RHRD::rddb::get_show_group($ctx, $show_id);
+ my ($group, $status, $errorstring) = RHRD::rddb::get_show_group($ctx, $showid);
unless(defined($group)) {
- print " showid '" . $show_id . "': has no dropbox assigned\n";
+ print " showid '" . $showid . "': has no dropbox assigned\n";
$errors++;
} else {
}