Commit 539c3724 authored by Gary Wong's avatar Gary Wong

Convert expt_expires() result to time_t.

parent c1f9523f
......@@ -794,9 +794,14 @@ sub MaxSliceExtension($$$;$) {
sub ExpectedEnd($$) {
my ($class, $experiment) = @_;
return $experiment->autoswap() ? time() +
$experiment->autoswap_timeout * 60 : $experiment->expt_expires();
if( $experiment->autoswap() ) {
return time() + $experiment->autoswap_timeout * 60;
} elsif( defined( $experiment->expt_expires() ) ) {
return str2time( $experiment->expt_expires() );
} else {
return undef;
}
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment