ConstElementPtr answer = stats_mgr.statisticSetMaxSampleAgeAllHandler(args);
// Update the default parameter.
auto duration = stats_mgr.getMaxSampleAgeDefault();
- long max_age = duration.total_seconds();
+ long max_age = duration.count(); // do we need to check if this is in seconds?
CfgMgr::instance().getCurrentCfg()->addConfiguredGlobal(
"statistic-default-sample-age", Element::create(max_age));
return (answer);
#include <hooks/hooks_manager.h>
#include <stats/stats_mgr.h>
#include <testutils/log_utils.h>
-#include <util/boost_time_utils.h>
+#include <util/chrono_time_utils.h>
#include <util/doubles.h>
#include "marker_file.h"
ConstElementPtr answer = stats_mgr.statisticSetMaxSampleAgeAllHandler(args);
// Update the default parameter.
auto duration = stats_mgr.getMaxSampleAgeDefault();
- long max_age = duration.total_seconds();
+ long max_age = duration.count(); /// @todo: do we need to check if this is in seconds?
CfgMgr::instance().getCurrentCfg()->addConfiguredGlobal(
"statistic-default-sample-age", Element::create(max_age));
return (answer);
#include <process/config_ctl_info.h>
#include <stats/stats_mgr.h>
#include <testutils/log_utils.h>
-#include <util/boost_time_utils.h>
+#include <util/chrono_time_utils.h>
#include "test_data_files_config.h"
#include "test_libraries.h"