From 8a77ed3a208aed4adabb1e1d7e2bff6d25c75db9 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 6 Aug 2013 18:11:31 -0700 Subject: uhd: time spec fix from last commit --- host/lib/types/time_spec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/types') diff --git a/host/lib/types/time_spec.cpp b/host/lib/types/time_spec.cpp index 2a5102190..4fe090095 100644 --- a/host/lib/types/time_spec.cpp +++ b/host/lib/types/time_spec.cpp @@ -121,7 +121,7 @@ long long time_spec_t::to_ticks(double tick_rate) const{ const long long ticks_full = this->get_full_secs()*rate_i; const double ticks_error = this->get_full_secs()*rate_f; const double ticks_frac = this->get_frac_secs()*tick_rate; - return ticks_full + ticks_error + ticks_frac; + return ticks_full + fast_llround(ticks_error + ticks_frac); } double time_spec_t::get_real_secs(void) const{ -- cgit v1.2.3