[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: blocks: fixed relative rate in keep_
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: blocks: fixed relative rate in keep_m_in_n. It's m-in-n, not n-in-m. |
Date: |
Wed, 1 Oct 2014 17:21:42 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch maint
in repository gnuradio.
commit ff7e74b2cc1ae21180a57da19ab4c0725aa233b4
Author: Tom Rondeau <address@hidden>
Date: Wed Oct 1 13:18:01 2014 -0400
blocks: fixed relative rate in keep_m_in_n. It's m-in-n, not n-in-m.
---
gr-blocks/lib/keep_m_in_n_impl.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gr-blocks/lib/keep_m_in_n_impl.cc
b/gr-blocks/lib/keep_m_in_n_impl.cc
index b33eb7c..11b3b27 100644
--- a/gr-blocks/lib/keep_m_in_n_impl.cc
+++ b/gr-blocks/lib/keep_m_in_n_impl.cc
@@ -66,7 +66,7 @@ namespace gr {
}
set_output_multiple(m);
- set_relative_rate(static_cast<double>(d_n)/static_cast<double>(d_m));
+ set_relative_rate(static_cast<double>(d_m)/static_cast<double>(d_n));
}
void
@@ -80,14 +80,14 @@ namespace gr {
{
d_m = m;
set_output_multiple(m);
- set_relative_rate(static_cast<double>(d_n)/static_cast<double>(d_m));
+ set_relative_rate(static_cast<double>(d_m)/static_cast<double>(d_n));
}
void
keep_m_in_n_impl::set_n(int n)
{
d_n = n;
- set_relative_rate(static_cast<double>(d_n)/static_cast<double>(d_m));
+ set_relative_rate(static_cast<double>(d_m)/static_cast<double>(d_n));
}
void