summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-09-17 17:36:13 +0200
committerHenning Baldersheim <balder@oath.com>2018-09-17 17:36:13 +0200
commit7ee198443e90c9793570e388710221bdd2a41e57 (patch)
treef024a166a009858e81dd4372f8bc3d64c314692b /searchlib
parent4847efa10ca97947c1a607ca76c1619bab559083 (diff)
Reduce frequency to avoid spending 1/2 core for when having many attributes.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributevector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
index e876c7c753b..fbf752d3893 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
@@ -138,7 +138,7 @@ void AttributeVector::updateStat(bool force) {
onUpdateStat();
} else if (_nextStatUpdateTime < fastos::ClockSystem::now()) {
onUpdateStat();
- _nextStatUpdateTime = fastos::ClockSystem::now() + fastos::TimeStamp::SEC;
+ _nextStatUpdateTime = fastos::ClockSystem::now() + 5ul * fastos::TimeStamp::SEC;
}
}