|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
/***************************************************************************
|
|
|
|
|
* Copyright (C) 2004-2005 by Hugo Parente Lima *
|
|
|
|
|
* (c) 2015 Timothy Pearson <kb9vqf@pearsoncomputing.net> *
|
|
|
|
|
* Copyright (C) 2004-2005 by Hugo Parente Lima *
|
|
|
|
|
* hugo_pl@users.sourceforge.net *
|
|
|
|
|
* *
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
@ -15,7 +16,7 @@
|
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
|
* Free Software Foundation, Inc., *
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef KNETSTATSVIEW_H
|
|
|
|
@ -109,13 +110,13 @@ public:
|
|
|
|
|
inline Mode viewMode() const;
|
|
|
|
|
|
|
|
|
|
/// Total of bytes receiveds
|
|
|
|
|
inline unsigned int totalBytesRx() const;
|
|
|
|
|
inline unsigned long totalBytesRx() const;
|
|
|
|
|
/// Total of bytes transmitted
|
|
|
|
|
inline unsigned int totalBytesTx() const;
|
|
|
|
|
inline unsigned long totalBytesTx() const;
|
|
|
|
|
/// Total of packets receiveds
|
|
|
|
|
inline unsigned int totalPktRx() const;
|
|
|
|
|
inline unsigned long totalPktRx() const;
|
|
|
|
|
/// Total of packets transmitted
|
|
|
|
|
inline unsigned int totalPktTx() const;
|
|
|
|
|
inline unsigned long totalPktTx() const;
|
|
|
|
|
/// RX Speed in bytes per second
|
|
|
|
|
inline double byteSpeedRx() const;
|
|
|
|
|
/// TX Speed in bytes per second
|
|
|
|
@ -224,19 +225,19 @@ KNetStatsView::Mode KNetStatsView::viewMode() const {
|
|
|
|
|
return mOptions.mViewMode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unsigned int KNetStatsView::totalBytesRx() const {
|
|
|
|
|
unsigned long KNetStatsView::totalBytesRx() const {
|
|
|
|
|
return mTotalBytesRx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unsigned int KNetStatsView::totalBytesTx() const {
|
|
|
|
|
unsigned long KNetStatsView::totalBytesTx() const {
|
|
|
|
|
return mTotalBytesTx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unsigned int KNetStatsView::totalPktRx() const {
|
|
|
|
|
unsigned long KNetStatsView::totalPktRx() const {
|
|
|
|
|
return mTotalPktRx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unsigned int KNetStatsView::totalPktTx() const {
|
|
|
|
|
unsigned long KNetStatsView::totalPktTx() const {
|
|
|
|
|
return mTotalPktTx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|