Skip to content
Permalink
Browse files

Prevent a bunch of warnings about workflows that have not yet been ru…

…n when getting the status report from Spectre.
  • Loading branch information...
perlDreamer committed Jun 1, 2012
1 parent 49ee896 commit 8370cb15c8331f8a688d38e2ba171a0e020217c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 sbin/spectre.pl
@@ -178,7 +178,7 @@ sub getStatusReport {
foreach my $instance (@{JSON->new->decode($result)}) {
my $originalPriority = ($instance->{priority} - 1) * 10;
my $priority = $instance->{workingPriority}."/".$originalPriority;
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, $instance->{lastRunTime};
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, ($instance->{lastRunTime} || '');
$total++;
}
$output .= sprintf "\n%19.19s %4d\n", "Total Workflows", $total;

0 comments on commit 8370cb1

Please sign in to comment.
You can’t perform that action at this time.