Fix for 923896

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-05-27 23:28:35 -03:00
parent f6e265613c
commit 20d6ccff9e
3 changed files with 36 additions and 1 deletions

View File

@@ -2177,6 +2177,7 @@ sub find {
}
if ( $find_spec{busy_time} && ($query->{Command} || '') eq 'Query' ) {
next QUERY unless defined $query->{Time};
if ( $query->{Time} < $find_spec{busy_time} ) {
PTDEBUG && _d("Query isn't running long enough");
next QUERY;
@@ -2186,6 +2187,7 @@ sub find {
}
if ( $find_spec{idle_time} && ($query->{Command} || '') eq 'Sleep' ) {
next QUERY unless defined $query->{Time};
if ( $query->{Time} < $find_spec{idle_time} ) {
PTDEBUG && _d("Query isn't idle long enough");
next QUERY;