Guest User

Untitled

a guest
Jul 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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. /*
Add Comment
Please, Sign In to add comment