Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index 0105e09..5ec9ee4 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp | |||
@@ -33,4 +33,5 @@ using namespace Opie; | |||
33 | #include <qcheckbox.h> | 33 | #include <qcheckbox.h> |
34 | #include <qcombobox.h> | 34 | #include <qcombobox.h> |
35 | #include <qdatetime.h> | ||
35 | #include <qpushbutton.h> | 36 | #include <qpushbutton.h> |
36 | #include <qlineedit.h> | 37 | #include <qlineedit.h> |
@@ -258,21 +259,6 @@ void Wellenreiter::stopClicked() | |||
258 | 259 | ||
259 | // print out statistics | 260 | // print out statistics |
260 | statwindow->log( "-----------------------------------------" ); | ||
261 | statwindow->log( "- Wellenreiter II Capturing Statistic -" ); | ||
262 | statwindow->log( "-----------------------------------------" ); | ||
263 | statwindow->log( "Packet Type | Receive Count" ); | ||
264 | |||
265 | for( QMap<QString,int>::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) | 261 | for( QMap<QString,int>::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) |
266 | { | 262 | statwindow->updateCounter( it.key(), it.data() ); |
267 | QString left; | ||
268 | left.sprintf( "%s", (const char*) it.key() ); | ||
269 | left = left.leftJustify( 20 ); | ||
270 | left.append( '|' ); | ||
271 | QString right; | ||
272 | right.sprintf( "%d", it.data() ); | ||
273 | right = right.rightJustify( 7 ); | ||
274 | statwindow->log( left + right ); | ||
275 | } | ||
276 | |||
277 | } | 263 | } |
278 | 264 | ||