search API: elapsedMilliseconds overflows when no search results are returned
Created by: nicksnyder
From enterprise created by slimsag : sourcegraph/enterprise#12625
If you perform a request that returns no search results (i.e. one that returns almost instantly), the elapsedMilliseconds
field returned to your will be 2077252342
(577h0m52.342s):
This caused me to waste a lot of time because I thought I was using the returned value incorrectly somehow, but it turned out that wasn't the case. Users of our API will run into this as well.