summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-02-02 15:30:10 +0100
committerHenning Baldersheim <balder@oath.com>2018-02-02 15:30:10 +0100
commit36e0c35d559375de02e5332c3b2de9c0c7e0bf84 (patch)
tree438fc3fd3d10366443b5958a32d5a5f7a12b5d7a
parent8d6c9b50c3c27df161c615ad0a955c3d11fc1400 (diff)
Even though visually similar, semantic similarity of '1' and 'i' are close to zero.
-rw-r--r--searchcore/src/vespa/searchcore/proton/docsummary/docsumcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/docsummary/docsumcontext.cpp b/searchcore/src/vespa/searchcore/proton/docsummary/docsumcontext.cpp
index da936a9d7af..dac9753773c 100644
--- a/searchcore/src/vespa/searchcore/proton/docsummary/docsumcontext.cpp
+++ b/searchcore/src/vespa/searchcore/proton/docsummary/docsumcontext.cpp
@@ -124,7 +124,7 @@ DocsumContext::createSlimeReply()
}
}
if (i != _docsumState._docsumcnt) {
- const uint32_t numTimedOut = _docsumState._docsumcnt - 1;
+ const uint32_t numTimedOut = _docsumState._docsumcnt - i;
Cursor & errors = root.setArray(ERRORS);
Cursor & timeout = errors.addObject();
timeout.setString(TYPE, TIMEOUT);