# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2016-03-25 16:47:57 # Node ID 52af566267d1cf022c470688d84b204ec9bcdfc1 # Parent c1f2f6471ae517343fd5662102dad31d3ca943c8 show sample per second value for a single channel, not total input diff --git a/src/dataformatpanel.cpp b/src/dataformatpanel.cpp --- a/src/dataformatpanel.cpp +++ b/src/dataformatpanel.cpp @@ -182,7 +182,7 @@ void DataFormatPanel::enableDemo(bool en void DataFormatPanel::spsTimerTimeout() { unsigned currentSps = _samplesPerSecond; - _samplesPerSecond = sampleCount/SPS_UPDATE_TIMEOUT; + _samplesPerSecond = (sampleCount/_numOfChannels)/SPS_UPDATE_TIMEOUT; if (currentSps != _samplesPerSecond) { emit samplesPerSecondChanged(_samplesPerSecond); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -199,7 +199,7 @@ MainWindow::MainWindow(QWidget *parent) // Init sps (sample per second) counter spsLabel.setText("0sps"); - spsLabel.setToolTip("samples per second (total of all channels)"); + spsLabel.setToolTip("samples per second (per channel)"); ui->statusBar->addPermanentWidget(&spsLabel); QObject::connect(&dataFormatPanel, &DataFormatPanel::samplesPerSecondChanged,