~ubuntu-branches/ubuntu/precise/knemo/precise

« back to all changes in this revision

Viewing changes to src/knemod/interfacestatusdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-06-15 18:58:30 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100615185830-2zeqn9vpn3jjx6gd
Tags: 0.6.3-1
* New upstream release 
  - Fixes (LP: #559683, LP: #248294)
  - save changes to traffic threshold setting
  - add option to report traffic rate in bit/s
  - update the signal plotter from KDE SC 4.4 branch; a few minor plotter
    config options were dropped as a result
  - on startup sync recent traffic statistics with vnstat if it's available;
    this should help KNemo account for traffic between sessions
  - fix possible hang when text icon theme uses fixed fonts

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  #include <netlink/netlink.h>
29
29
#endif
30
30
 
31
 
#include "data.h"
 
31
#include "global.h"
32
32
#include "interface.h"
33
33
#include "interfacestatistics.h"
34
34
#include "interfacestatusdialog.h"
190
190
    ui.textLabelPacketsReceived->setText( QString::number( data->rxPackets ) );
191
191
    ui.textLabelBytesSend->setText( data->txString );
192
192
    ui.textLabelBytesReceived->setText( data->rxString );
193
 
    unsigned long bytesPerSecond = data->outgoingBytes / mInterface->getGeneralData().pollInterval;
194
 
    ui.textLabelSpeedSend->setText( KIO::convertSize( bytesPerSecond  ) + i18n( "/s" ) );
195
 
    bytesPerSecond = data->incomingBytes / mInterface->getGeneralData().pollInterval;
196
 
    ui.textLabelSpeedReceived->setText( KIO::convertSize( bytesPerSecond ) + i18n( "/s" ) );
 
193
    ui.textLabelSpeedSend->setText( mInterface->getTxRateStr() );
 
194
    ui.textLabelSpeedReceived->setText( mInterface->getRxRateStr() );
197
195
}
198
196
 
199
197
void InterfaceStatusDialog::doConnected( const BackendData *data )