2
0
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:
Tomek Mrugalski
2020-07-14 15:36:47 +02:00
parent 0ac1b4d88f
commit 6e3ba22dda
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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"

View File

@@ -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);

View File

@@ -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"