|
|
|
@ -313,7 +313,7 @@ void KNetStatsView::drawGraphic(TQPainter& paint) {
|
|
|
|
|
|
|
|
|
|
const int HEIGHT = size.height()-1;
|
|
|
|
|
|
|
|
|
|
// qDebug("MaxSpeed: %d, age: %d", int(mMaxSpeed), mMaxSpeedAge);
|
|
|
|
|
// tqDebug("MaxSpeed: %d, age: %d", int(mMaxSpeed), mMaxSpeedAge);
|
|
|
|
|
int lastX;
|
|
|
|
|
int lastRxY = HEIGHT - int(HEIGHT * (mSpeedHistoryRx[mSpeedHistoryPtr]/mMaxSpeed));
|
|
|
|
|
int lastTxY = HEIGHT - int(HEIGHT * (mSpeedHistoryTx[mSpeedHistoryPtr]/mMaxSpeed));
|
|
|
|
@ -329,7 +329,7 @@ void KNetStatsView::drawGraphic(TQPainter& paint) {
|
|
|
|
|
paint.drawLine(lastX, lastRxY, x, rxY);
|
|
|
|
|
paint.setPen(mOptions.mChartUplColor);
|
|
|
|
|
paint.drawLine(lastX, lastTxY, x, txY);
|
|
|
|
|
//qDebug("%d => %d", i, int(mSpeedHistoryRx[i]));
|
|
|
|
|
//tqDebug("%d => %d", i, int(mSpeedHistoryRx[i]));
|
|
|
|
|
lastX = x;
|
|
|
|
|
lastRxY = rxY;
|
|
|
|
|
lastTxY = txY;
|
|
|
|
|