Restore support for decay time of -1 (no decay).
This commit is contained in:
parent
ecdff8fa76
commit
cbc3697dda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296334
@ -1352,7 +1352,11 @@ static bool
|
|||||||
arena_decay_time_valid(ssize_t decay_time)
|
arena_decay_time_valid(ssize_t decay_time)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (decay_time >= -1 && (uint64_t)decay_time <= NSTIME_SEC_MAX);
|
if (decay_time < -1)
|
||||||
|
return (false);
|
||||||
|
if (decay_time == -1 || (uint64_t)decay_time <= NSTIME_SEC_MAX)
|
||||||
|
return (true);
|
||||||
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
|
Loading…
Reference in New Issue
Block a user