summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-02-08 13:42:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-02-08 13:42:00 +0000
commitfef6d75250ff409043b9a2d3c3889ec9945d6ae9 (patch)
tree71d5aa38167221bb16b5f4c56e1f49b94b79e5e4 /searchcore
parent1adab1c56687f956381b6558dae0c127204427eb (diff)
Make MatchingStats a friend of its inner class Partition to avoid crossing the creek for water.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/matching_stats.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp
index 91ee3e0662b..3bdc8efaa1c 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.cpp
@@ -48,7 +48,7 @@ MatchingStats::merge_partition(const Partition &partition, size_t id)
_docsMatched += partition.docsMatched();
_docsRanked += partition.docsRanked();
_docsReRanked += partition.docsReRanked();
- _doomOvertime.add(Avg().set(partition.doomOvertime().sec()));
+ _doomOvertime.add(partition._doomOvertime);
if (partition.softDoomed()) {
_softDoomed = 1;
}
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h
index d440ca809f0..d676977feb7 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h
+++ b/searchcore/src/vespa/searchcore/proton/matching/matching_stats.h
@@ -65,6 +65,7 @@ public:
Avg _doomOvertime;
Avg _active_time;
Avg _wait_time;
+ friend MatchingStats;
public:
Partition()
: _docsCovered(0),