diff options
Diffstat (limited to 'gnuradio-runtime/lib/block_executor.cc')
-rw-r--r-- | gnuradio-runtime/lib/block_executor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/block_executor.cc b/gnuradio-runtime/lib/block_executor.cc index ee22ef55e3..d3718202d1 100644 --- a/gnuradio-runtime/lib/block_executor.cc +++ b/gnuradio-runtime/lib/block_executor.cc @@ -121,7 +121,8 @@ namespace gr { else { for(t = rtags.begin(); t != rtags.end(); t++) { tag_t new_tag = *t; - new_tag.offset *= rrate; + //new_tag.offset *= rrate; + new_tag.offset = ((double)new_tag.offset * rrate) + 0.5; for(int o = 0; o < d->noutputs(); o++) d->output(o)->add_item_tag(new_tag); } @@ -140,7 +141,8 @@ namespace gr { std::vector<tag_t>::iterator t; for(t = rtags.begin(); t != rtags.end(); t++) { tag_t new_tag = *t; - new_tag.offset *= rrate; + //new_tag.offset *= rrate; + new_tag.offset = ((double)new_tag.offset * rrate) + 0.5; d->output(i)->add_item_tag(new_tag); } } |