Skip to content

Commit

Permalink
Drop the qDebug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
handsome-feng committed Dec 10, 2020
1 parent 4341713 commit ec7f596
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 19 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
ukui-system-monitor (1.0.4-1) unstable; urgency=medium

* New upstream bugfix release.
* debian/control: bump Standards-Version to 4.5.1.

-- handsome_feng <[email protected]> Wed, 09 Dec 2020 17:12:54 +0800

ukui-system-monitor (1.0.3-1) unstable; urgency=medium

* New upstream release: fix the segmentation fault.
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Build-Depends: debhelper-compat (= 12),
libgsettings-qt-dev,
libqt5x11extras5-dev,
libpcap-dev
Standards-Version: 4.5.0
Standards-Version: 4.5.1
Rules-Requires-Root: no
Homepage: https://www.ukui.org
Vcs-Browser: https://github.com/ukui/ukui-system-monitor
Expand Down
7 changes: 1 addition & 6 deletions src/newresource/cpuhistorychart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ CpuHistoryChart::CpuHistoryChart(QWidget *parent):QWidget(parent)
{
this->setMinimumSize(680,90);
this->setSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::Expanding);
qDebug()<<"cpu.chart.size"<<this->width();
m_pointsCount = int((this->width()) /10);
m_cpuMaxHeight = 50;
m_CpuHistoryList = new QList<double>();
Expand Down Expand Up @@ -135,7 +134,7 @@ void CpuHistoryChart::refreshCpuHistoryData(double cpu)
}
for (int i = 0; i < m_CpuHistoryList->size(); i++)
{
qDebug()<<"m_CpuHistoryList.size"<<m_CpuHistoryList->size();
// qDebug()<<"m_CpuHistoryList.size"<<m_CpuHistoryList->size();
if (cpuHistoryMaxHeight < m_cpuMaxHeight)
{
cpuHistoryPoints.append(QPointF((m_CpuHistoryList->size() - i -2) * POINTSPACE, m_CpuHistoryList->at(i)));
Expand All @@ -149,10 +148,7 @@ void CpuHistoryChart::refreshCpuHistoryData(double cpu)
// update();

// int x = int(m_pointsCount *i * 0.1 + 0.5);
// qDebug()<<"xxx"<<x;
// showValue = int(cpu) + 0.5;

// qDebug()<<"showvalue---"<<showValue;
// xList<< x;
// yDrawList << showValue;
// update();
Expand All @@ -161,6 +157,5 @@ void CpuHistoryChart::refreshCpuHistoryData(double cpu)

void CpuHistoryChart::onUpdateCpuPercent(double value)
{
qDebug()<<"----onUpdateCpuPercent----";
this->refreshCpuHistoryData(value); //about the cpurateForm showing
}
4 changes: 2 additions & 2 deletions src/newresource/networkchart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ void NetWorkChart::paintEvent(QPaintEvent *event)

void NetWorkChart::onUpdateDownloadAndUploadData(long recvTotalBytes, long sentTotalBytes, long recvRateBytes, long sentRateBytes)
{
qDebug()<<"recvRateBytes"<<recvRateBytes;
qDebug()<<"sentRateBytes"<<sentRateBytes;
// qDebug()<<"recvRateBytes"<<recvRateBytes;
// qDebug()<<"sentRateBytes"<<sentRateBytes;
// if(recvRateBytes + sentRateBytes >= 1024 * 1024)
// {
// emit this->speedToMib();
Expand Down
2 changes: 1 addition & 1 deletion src/newresource/newresourcesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void NewResouresDialog::cpuHistoySetText(double value)
showValue = QString::number(value,10,0);
QString s = "Cpu "+ showValue +":100%";
cpuUnitDataLabel->setText(s);
qDebug()<<"value"<<value;
// qDebug() << "cpu value: " << value;
}

void NewResouresDialog::memoryandswapSetText(const QString &infoMemory, double percentMemory,const QString &infoSwap, double percentSwap)
Expand Down
8 changes: 4 additions & 4 deletions src/newresource/swapandmemorychart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ void SwapAndMemoryChart::onUpdateMemoryAndSwapData(float memoryData,double memor
void SwapAndMemoryChart::refreshMemoryAndSwapData(float memoryData, double memoryPercent, float swapData, double swapPercent)
{
m_memoryData = formatMemory(memoryData) * 9 *(rect().height() / 90);
qDebug()<<"m_memoryData"<<m_memoryData;
// qDebug()<<"m_memoryData"<<m_memoryData;
m_swapData = formatMemory(swapData) * 9;
qDebug()<<"m_swapData"<<m_swapData;
// qDebug()<<"m_swapData"<<m_swapData;


QList<QPointF> memoryPoints;
Expand All @@ -105,7 +105,7 @@ void SwapAndMemoryChart::refreshMemoryAndSwapData(float memoryData, double memor
}
for (int i = 0; i < m_memoryDataList->size(); i++)
{
qDebug()<<"m_CpuHistoryList.size"<<m_memoryDataList->size();
// qDebug() << "m_CpuHistoryList.size" << m_memoryDataList->size();
if (memoryMaxHeight < m_memoryMaxHeight)
{
memoryPoints.append(QPointF((m_memoryDataList->size() - i -2) * POINTSPACE, m_memoryDataList->at(i)));
Expand Down Expand Up @@ -134,7 +134,7 @@ void SwapAndMemoryChart::refreshMemoryAndSwapData(float memoryData, double memor
}
for (int i = 0; i < m_swapDataList->size(); i++)
{
qDebug()<<"m_CpuHistoryList.size"<<m_swapDataList->size();
// qDebug() << "m_CpuHistoryList.size" << m_swapDataList->size();
if (swapMaxHeight < m_swapMaxHeight)
{
swapPoints.append(QPointF((m_swapDataList->size() - i -2) * POINTSPACE, m_swapDataList->at(i)));
Expand Down
5 changes: 1 addition & 4 deletions src/processworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,20 @@ static void get_process_name (ProcessWorker *info, const gchar *cmd, const GStrv
// and also /usr/bin/interpreter /usr/.../very_long_name
// which may have use prctl to alter 'cmd' name
for (int i = 0; i != 2 && args[i]; ++i) {
//老方法获取应用名字
char* basename;
basename = g_path_get_basename(args[i]);

if (g_str_has_prefix(basename, cmd)) {
info->name = basename;
return;
////新方法获取应用名字

}

g_free(basename);
}
}

info->name = g_strdup(cmd);
qDebug()<<"name"<<info->name;
// qDebug()<<"process name: "<<info->name;
}

static void get_process_systemd_info(ProcessWorker *info)
Expand Down
1 change: 0 additions & 1 deletion src/smoothlinegenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void SmoothLineGenerator::calculateFirstControlPoints(double *&result, const dou
void SmoothLineGenerator::calculateControlPoints(const QList<QPointF> &knots, QList<QPointF> *firstControlPoints, QList<QPointF> *secondControlPoints)
{
int n = knots.size() - 1;
qDebug()<<n<<"nnn";

for (int i = 0; i < n; ++i) {
firstControlPoints->append(QPointF());
Expand Down

0 comments on commit ec7f596

Please sign in to comment.