summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-08-06 18:11:31 -0700
committerJosh Blum <josh@joshknows.com>2013-08-06 18:11:31 -0700
commit8a77ed3a208aed4adabb1e1d7e2bff6d25c75db9 (patch)
tree5b8a7212eec61f08c96cfb80ffcc68fb230b6178
parenta85fae0b35e79df4c7b37a03b5154880f188f865 (diff)
downloaduhd-8a77ed3a208aed4adabb1e1d7e2bff6d25c75db9.tar.gz
uhd-8a77ed3a208aed4adabb1e1d7e2bff6d25c75db9.tar.bz2
uhd-8a77ed3a208aed4adabb1e1d7e2bff6d25c75db9.zip
uhd: time spec fix from last commit
-rw-r--r--host/lib/types/time_spec.cpp2
1 files changed, 1 insertions, 1 deletions
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{