Skip to content

Commit

Permalink
Fixing stupid copy & paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jul 11, 2013
1 parent e312bde commit e7a1eea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hpx/util/date_time_chrono.hpp
Expand Up @@ -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<duration_type>(from);
rep_type sec = d.count() / 1000000000;
rep_type nsec = d.count() % 1000000000;
rep_type d = boost::chrono::duration_cast<duration_type>(from).count();
rep_type sec = d / 1000000000;
rep_type nsec = d % 1000000000;
return boost::posix_time::seconds(static_cast<long>(sec)) +
#ifdef BOOST_DATE_TIME_HAS_NANOSECONDS
boost::posix_time::nanoseconds(nsec);
Expand Down

0 comments on commit e7a1eea

Please sign in to comment.