Skip to content

Commit

Permalink
Prevent a bunch of warnings about workflows that have not yet been ru…
Browse files Browse the repository at this point in the history
…n when getting the status report from Spectre.
  • Loading branch information
perlDreamer committed Jun 1, 2012
1 parent 49ee896 commit 8370cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/spectre.pl
Expand Up @@ -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;
Expand Down

0 comments on commit 8370cb1

Please sign in to comment.