summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rhrd-schedules4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index cee3f3d..7cc3194 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -43,6 +43,7 @@ sub generate
return 1;
}
+ my $errcnt = 0;
my @shows = ();
for my $entry (@{$data}) {
my $start = DateTime::Format::Strptime::strptime("%Y-%m-%d_%H:%M:%S", ${$entry}{'start'});
@@ -57,6 +58,7 @@ sub generate
if($showid < 0) {
print "WARNING: skipping entry whith unset automation id -> $start: $title ($pvid)\n";
+ $errcnt++;
next;
}
my ($exists, $status, $errorstring) = RHRD::rddb::check_show_exists($ctx, $showid);
@@ -83,7 +85,7 @@ sub generate
print "$status: $errorstring\n";
return 1;
}
- return 0;
+ return $errcnt;
}
sub show__day