summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_random_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-07 12:18:00 -0400
commit597b93798a804cde1783d6d2ab53b348d57c44cd (patch)
treeb65e73bb0de634ff5d209b15971ebdabf369a45c /gr-blocks/lib/message_strobe_random_impl.cc
parent1151e5502ccd440ebd89599cf7e4be4fb5ed8334 (diff)
Removing trailing/extra whitespaces before release.
We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
Diffstat (limited to 'gr-blocks/lib/message_strobe_random_impl.cc')
-rw-r--r--gr-blocks/lib/message_strobe_random_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/lib/message_strobe_random_impl.cc b/gr-blocks/lib/message_strobe_random_impl.cc
index 3d15574ba0..80819fc2fc 100644
--- a/gr-blocks/lib/message_strobe_random_impl.cc
+++ b/gr-blocks/lib/message_strobe_random_impl.cc
@@ -58,7 +58,7 @@ namespace gr {
{
// allocate RNGs
update_dist();
-
+
// set up ports
message_port_register_out(pmt::mp("strobe"));
d_thread = boost::shared_ptr<boost::thread>
@@ -87,7 +87,7 @@ namespace gr {
boost::poisson_distribution<> pd(d_mean_ms);
d_variate_poisson = boost::shared_ptr< boost::variate_generator<boost::mt19937, boost::poisson_distribution<> > > (
new boost::variate_generator <boost::mt19937, boost::poisson_distribution<> >(d_rng,pd) );
-
+
boost::normal_distribution<> nd(d_mean_ms, d_std_ms);
d_variate_normal = boost::shared_ptr< boost::variate_generator<boost::mt19937, boost::normal_distribution<> > > (
new boost::variate_generator <boost::mt19937, boost::normal_distribution<> >(d_rng,nd) );
@@ -108,7 +108,7 @@ namespace gr {
void message_strobe_random_impl::run()
{
while(!d_finished) {
- boost::this_thread::sleep(boost::posix_time::milliseconds(std::max(0.0f,next_delay())));
+ boost::this_thread::sleep(boost::posix_time::milliseconds(std::max(0.0f,next_delay())));
if(d_finished) {
return;
}