summaryrefslogtreecommitdiff
path: root/src/mongo/client/fetcher_test.cpp
diff options
context:
space:
mode:
authorLaMont Nelson <lamont.nelson@mongodb.com>2020-08-14 19:02:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-14 22:49:51 +0000
commitd09a0da1f4ccca9b087ba21bba66c88e0abd07d0 (patch)
tree0e2c096badc4070f3669fed1a6a3a5bb33939b5e /src/mongo/client/fetcher_test.cpp
parent75f7184eafa78006a698cda4c4adfb57f1290047 (diff)
downloadmongo-d09a0da1f4ccca9b087ba21bba66c88e0abd07d0.tar.gz
SERVER-49694: fix latency measurement in RSM; change latency measurement for command responses to Microseconds
Diffstat (limited to 'src/mongo/client/fetcher_test.cpp')
-rw-r--r--src/mongo/client/fetcher_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/fetcher_test.cpp b/src/mongo/client/fetcher_test.cpp
index e8283d1a4a6..c958d860e9c 100644
--- a/src/mongo/client/fetcher_test.cpp
+++ b/src/mongo/client/fetcher_test.cpp
@@ -175,7 +175,7 @@ void FetcherTest::_callback(const StatusWith<Fetcher::QueryResponse>& result,
cursorId = batchData.cursorId;
nss = batchData.nss;
documents = batchData.documents;
- elapsedMillis = batchData.elapsedMillis;
+ elapsedMillis = duration_cast<Milliseconds>(batchData.elapsed);
first = batchData.first;
}