daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jul 22nd, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: openbts/trunk/Transceiver52M/UHDDevice.cpp
  2. ===================================================================
  3. --- openbts/trunk/Transceiver52M/UHDDevice.cpp  (revision 3400)
  4. +++ openbts/trunk/Transceiver52M/UHDDevice.cpp  (working copy)
  5. @@ -65,14 +65,12 @@
  6.  */
  7.  uhd::time_spec_t convert_time(TIMESTAMP ticks, double rate)
  8.  {
  9. -   double secs = (double) ticks / rate;
  10. -   return uhd::time_spec_t(secs);
  11. +   return uhd::time_spec_t::from_ticks(ticks, rate);
  12.  }
  13.  
  14.  TIMESTAMP convert_time(uhd::time_spec_t ts, double rate)
  15.  {
  16. -   TIMESTAMP ticks = ts.get_full_secs() * rate;
  17. -   return ts.get_tick_count(rate) + ticks;
  18. +   return ts.to_ticks(rate);
  19.  }
  20.  
  21.  /*
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top