ukui-system-monitor/0001-add-storage-check.patch
2021-10-28 12:03:41 +08:00

48 lines
1.6 KiB
Diff

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