summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/common
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-02-15 13:55:04 +0000
committerArne Juul <arnej@verizonmedia.com>2021-02-15 14:16:21 +0000
commitaf9d59c3fece374c5fe61575c67ad49ac5f84bb4 (patch)
treea1851a855e22e406f877bfb405e192232ec1e137 /searchcore/src/tests/proton/common
parent805a313df05d2f347af321511527e06ea3cae92c (diff)
use size literals in searchcore
Diffstat (limited to 'searchcore/src/tests/proton/common')
-rw-r--r--searchcore/src/tests/proton/common/hw_info_sampler/hw_info_sampler_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/common/hw_info_sampler/hw_info_sampler_test.cpp b/searchcore/src/tests/proton/common/hw_info_sampler/hw_info_sampler_test.cpp
index 78676d6abf1..0373d46a905 100644
--- a/searchcore/src/tests/proton/common/hw_info_sampler/hw_info_sampler_test.cpp
+++ b/searchcore/src/tests/proton/common/hw_info_sampler/hw_info_sampler_test.cpp
@@ -4,6 +4,7 @@
#include <vespa/searchcore/config/config-hwinfo.h>
#include <vespa/searchcore/proton/common/hw_info_sampler.h>
#include <vespa/searchlib/test/directory_handler.h>
+#include <vespa/vespalib/util/size_literals.h>
#include <vespa/vespalib/testkit/testapp.h>
using proton::HwInfoSampler;
@@ -17,7 +18,7 @@ using Config = HwInfoSampler::Config;
namespace {
const vespalib::string test_dir = "temp";
-constexpr uint64_t sampleLen = 1024 * 1024 * 40;
+constexpr uint64_t sampleLen = 40_Mi;
constexpr bool sharedDisk = false;
long time_point_to_long(Clock::time_point tp)