diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-05-03 18:04:50 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2014-05-03 18:04:50 +0200 |
commit | 376884f6a0c986e4fa20011eddbd77a758528b6d (patch) | |
tree | fbc209b97b46bccc021c89afc511d0f4fe3f5943 | |
parent | 40f93c2ae1c2c9a6e726cdb377dc248fdcef646b (diff) |
uhd: use universal_time() for "sync=unknown"
-rw-r--r-- | lib/uhd/uhd_sink_c.cc | 2 | ||||
-rw-r--r-- | lib/uhd/uhd_source_c.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/uhd/uhd_sink_c.cc b/lib/uhd/uhd_sink_c.cc index 6e369a4..d988926 100644 --- a/lib/uhd/uhd_sink_c.cc +++ b/lib/uhd/uhd_sink_c.cc @@ -427,7 +427,7 @@ get_precision_time (long long *secs, double *fracs) double psecs; double fracts; - now = boost::posix_time::microsec_clock::local_time(); + now = boost::posix_time::microsec_clock::universal_time(); diff = now - epoch; psecs = (diff.total_milliseconds() / 1.0e3); diff --git a/lib/uhd/uhd_source_c.cc b/lib/uhd/uhd_source_c.cc index b8dc68f..0fe31a4 100644 --- a/lib/uhd/uhd_source_c.cc +++ b/lib/uhd/uhd_source_c.cc @@ -447,7 +447,7 @@ get_precision_time (long long *secs, double *fracs) double psecs; double fracts; - now = boost::posix_time::microsec_clock::local_time(); + now = boost::posix_time::microsec_clock::universal_time(); diff = now - epoch; psecs = (diff.total_milliseconds() / 1.0e3); |