summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/qtgui_time_sink_f.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/qtgui_time_sink_f.cc')
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_f.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-qtgui/lib/qtgui_time_sink_f.cc b/gr-qtgui/lib/qtgui_time_sink_f.cc
index 2fe99f43c..09fdf0a92 100644
--- a/gr-qtgui/lib/qtgui_time_sink_f.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_f.cc
@@ -1,19 +1,19 @@
/* -*- c++ -*- */
/*
* Copyright 2011 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
- *
+ *
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -147,26 +147,26 @@ qtgui_time_sink_f::work (int noutput_items,
unsigned int datasize = noutput_items - i;
unsigned int resid = d_size-d_index;
idx = 0;
-
+
// If we have enough input for one full plot, do it
if(datasize >= resid) {
d_current_time = gruel::high_res_timer_now();
-
+
// Fill up residbufs with d_size number of items
for(n = 0; n < d_nconnections; n++) {
in = (const float*)input_items[idx++];
for(unsigned int k = 0; k < resid; k++) {
d_residbufs[n][d_index+k] = in[j+k];
}
- }
+ }
// Update the plot if its time
if(gruel::high_res_timer_now() - d_last_time > d_update_time) {
d_last_time = d_current_time;
d_qApplication->postEvent(d_main_gui,
- new TimeUpdateEvent(d_residbufs, d_size));
+ new TimeUpdateEvent(d_residbufs, d_size));
}
-
+
d_index = 0;
j += resid;
}
@@ -184,6 +184,6 @@ qtgui_time_sink_f::work (int noutput_items,
j += datasize;
}
}
-
+
return noutput_items;
}