elasticsearch/elasticsearch — pull request #7968 by jpountz (2014-10-03 09:47:24+00:00)
Title: Internal: Don't let `took` be negative.

`took` is computed based on the system clock and can be negative if the clock
time was updated during the execution of the search request. This commit
protects against these cases by replacing `took` with 1 if the elapsed time is
negative.