Skip to content

Commit 8370cb1

Browse files
committedJun 1, 2012
Prevent a bunch of warnings about workflows that have not yet been run when getting the status report from Spectre.

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎sbin/spectre.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ sub getStatusReport {
178178
foreach my $instance (@{JSON->new->decode($result)}) {
179179
my $originalPriority = ($instance->{priority} - 1) * 10;
180180
my $priority = $instance->{workingPriority}."/".$originalPriority;
181-
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, $instance->{lastRunTime};
181+
$output .= sprintf $pattern, $priority, $instance->{status}, $instance->{sitename}, $instance->{instanceId}, $instance->{lastState}, ($instance->{lastRunTime} || '');
182182
$total++;
183183
}
184184
$output .= sprintf "\n%19.19s %4d\n", "Total Workflows", $total;

0 commit comments

Comments
 (0)
Please sign in to comment.