!10 Debian storage check

From: @tanyulong2021
Reviewed-by: @dou33
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2021-11-01 07:04:30 +00:00 committed by Gitee
commit f4a4acdfe0
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,47 @@
From a95dab7b1c386a993e77c17091b8c7a55db711ef Mon Sep 17 00:00:00 2001
From: tanyulong <tanyulong@kylinos.cn>
Date: Thu, 28 Oct 2021 11:53:35 +0800
Subject: [PATCH] add storage check
---
debian/source/format | 2 +-
src/linebandwith.cpp | 2 +-
src/singleProcessNet/inode2prog.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/source/format b/debian/source/format
index 89ae9db..163aaf8 100755
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-3.0 (native)
+3.0 (quilt)
diff --git a/src/linebandwith.cpp b/src/linebandwith.cpp
index 4c5d6e2..95f81f6 100755
--- a/src/linebandwith.cpp
+++ b/src/linebandwith.cpp
@@ -39,7 +39,7 @@ QString lineBandwith::new_count(qint64 count ,int pid)
// quint64 bandwith = count-count_prev;
qint64 bandwith = count - countMap[pid];
qDebug()<<"count---yayaya" <<count<<"-"<<countMap[pid]<<count-countMap[pid];
- qDebug()<<"bandwith:::"<<bandwith;
+ qDebug()<<"bandwidth:::"<<bandwith;
qDebug()<<"count_prev1:::"<<count_prev;
QDateTime now = QDateTime::currentDateTime();
quint64 ms_lapse = time_prev.msecsTo(now);
diff --git a/src/singleProcessNet/inode2prog.cpp b/src/singleProcessNet/inode2prog.cpp
index e3fc45a..8154c9f 100755
--- a/src/singleProcessNet/inode2prog.cpp
+++ b/src/singleProcessNet/inode2prog.cpp
@@ -192,7 +192,7 @@ void reread_mapping () {
DIR * proc = opendir ("/proc");
if (proc == 0) {
- std::cerr << "Error reading /proc, neede to get inode-to-pid-maping\n";
+ std::cerr << "Error reading /proc, needed to get inode-to-pid-maping\n";
exit(1);
}
--
2.30.0

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-system-monitor
Version: 1.0.1
Release: 3
Release: 4
Summary: A simple system monitor written in QT
License: GPL-3+ GPL-2+
URL: http://www.ukui.org
@ -34,6 +34,8 @@ Requires: libpcap
patch0: 0001-removes-transparency.patch
patch1: hide_idle_rate.patch
patch2: 0001-add-storage-check.patch
%description
A simple system monitor written in QT
@ -41,6 +43,7 @@ A simple system monitor written in QT
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
export PATH=%{_qt5_bindir}:$PATH
@ -71,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/glib-2.0/schemas/org.ukui.system-monitor.menu.gschema.xml
%changelog
* Thu Oct 28 2021 tanyulong <tanyulong@kylinos.cn> - 1.0.1-4
- add storage check
* Wed Sep 1 2021 douyan <douyan@kylinos.cn> - 1.0.1-3
- hide idle rate