Skip to content

Commit

Permalink
avoid undefined warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adunstan committed May 19, 2015
1 parent 58e0a0e commit 636bddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_build.pl
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,8 @@ sub check_optional_step

my $last_step = $last_status = find_last("$step") || 0;

return undef unless (time >$last_step + (3600 * $oconf->{min_hours_since}));
return undef if (exists($oconf->{min_hours_since}) &&
time < $last_step + (3600 * $oconf->{min_hours_since}));
set_last("$step") unless $nostatus;

return 1;
Expand Down

0 comments on commit 636bddb

Please sign in to comment.