From e7a1eea03e6250c12dea327ca5baeedae633c1db Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Sat, 6 Jul 2013 15:58:11 -0500 Subject: [PATCH] Fixing stupid copy & paste error --- hpx/util/date_time_chrono.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hpx/util/date_time_chrono.hpp b/hpx/util/date_time_chrono.hpp index 6cc0764e90cd..7628d9c0e91c 100644 --- a/hpx/util/date_time_chrono.hpp +++ b/hpx/util/date_time_chrono.hpp @@ -39,9 +39,9 @@ namespace hpx { namespace util { typedef boost::chrono::nanoseconds duration_type; typedef duration_type::rep rep_type; - rep_type d = boost::chrono::duration_cast(from); - rep_type sec = d.count() / 1000000000; - rep_type nsec = d.count() % 1000000000; + rep_type d = boost::chrono::duration_cast(from).count(); + rep_type sec = d / 1000000000; + rep_type nsec = d % 1000000000; return boost::posix_time::seconds(static_cast(sec)) + #ifdef BOOST_DATE_TIME_HAS_NANOSECONDS boost::posix_time::nanoseconds(nsec);