diff options
author | Tomek Mrugalski <tomek@isc.org> | 2020-07-14 15:36:47 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2020-07-14 15:37:51 +0200 |
commit | 6e3ba22dda7eccc2bc5a0059d787492e53c15652 (patch) | |
tree | 1943de9ad9c2bf12f4be20359e94030c89abcad0 /src/bin/dhcp6 | |
parent | [#1174] libdhcpsrv, stats tests fixed after rebase (diff) | |
download | kea-6e3ba22dda7eccc2bc5a0059d787492e53c15652.tar.xz kea-6e3ba22dda7eccc2bc5a0059d787492e53c15652.zip |
[#1174] Fixed compilation failures for dhcp4/dhcp6
Diffstat (limited to 'src/bin/dhcp6')
-rw-r--r-- | src/bin/dhcp6/ctrl_dhcp6_srv.cc | 2 | ||||
-rw-r--r-- | src/bin/dhcp6/tests/config_parser_unittest.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/dhcp6/ctrl_dhcp6_srv.cc b/src/bin/dhcp6/ctrl_dhcp6_srv.cc index 50c39e9b68..64b0b81abb 100644 --- a/src/bin/dhcp6/ctrl_dhcp6_srv.cc +++ b/src/bin/dhcp6/ctrl_dhcp6_srv.cc @@ -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); diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc index 47e2cad81c..b171d58984 100644 --- a/src/bin/dhcp6/tests/config_parser_unittest.cc +++ b/src/bin/dhcp6/tests/config_parser_unittest.cc @@ -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" |