mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[#1174] Fixed compilation failures for dhcp4/dhcp6
This commit is contained in:
@@ -676,7 +676,7 @@ ControlledDhcpv4Srv::commandStatisticSetMaxSampleAgeAllHandler(const string&,
|
||||
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);
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#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"
|
||||
|
@@ -679,7 +679,7 @@ ControlledDhcpv6Srv::commandStatisticSetMaxSampleAgeAllHandler(const string&,
|
||||
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);
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#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"
|
||||
|
Reference in New Issue
Block a user