Improve and simplify code with modern C++ features
Change-Id: I83bf5513c2a1f90ba5a59e93c473306864b27d94
diff --git a/daemon/fw/asf-probing-module.hpp b/daemon/fw/asf-probing-module.hpp
index 785abd8..02ef155 100644
--- a/daemon/fw/asf-probing-module.hpp
+++ b/daemon/fw/asf-probing-module.hpp
@@ -80,8 +80,8 @@
getRandomNumber(double start, double end);
public:
- static constexpr time::milliseconds DEFAULT_PROBING_INTERVAL = time::milliseconds(60000);
- static constexpr time::milliseconds MIN_PROBING_INTERVAL = time::milliseconds(1000);
+ static constexpr time::milliseconds DEFAULT_PROBING_INTERVAL = 1_min;
+ static constexpr time::milliseconds MIN_PROBING_INTERVAL = 1_s;
private:
time::milliseconds m_probingInterval;