summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-12-08 13:49:34 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-12-08 13:49:34 -0200
commitb32d30907623f3a9eb26204776a67d50a88c163c (patch)
treece17ce6388828257ec50d5180d47eab3a4d39141
parent50c745085ee61b5f6e942c6fc438da0e1410e2d4 (diff)
downloadtuna-b32d30907623f3a9eb26204776a67d50a88c163c.tar.gz
gui: Stop reloading all /proc/pid/cmdline at every refresh
Leaving the parsing to the last possible moment. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--rpm/SPECS/tuna.spec2
-rw-r--r--tuna/tuna_gui.py3
2 files changed, 1 insertions, 4 deletions
diff --git a/rpm/SPECS/tuna.spec b/rpm/SPECS/tuna.spec
index 0535fa4..1e70b02 100644
--- a/rpm/SPECS/tuna.spec
+++ b/rpm/SPECS/tuna.spec
@@ -11,7 +11,7 @@ Source: http://userweb.kernel.org/~acme/tuna/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: python-devel
Requires: python-ethtool
-Requires: python-linux-procfs >= 0.4
+Requires: python-linux-procfs >= 0.4.1
Requires: python-schedutils
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
diff --git a/tuna/tuna_gui.py b/tuna/tuna_gui.py
index f012752..6531710 100644
--- a/tuna/tuna_gui.py
+++ b/tuna/tuna_gui.py
@@ -1184,7 +1184,6 @@ class procview:
def refresh(self):
self.ps.reload()
self.ps.reload_threads()
- self.ps.load_cmdline()
self.show(True)
@@ -1396,7 +1395,6 @@ class gui:
self.wtree.signal_autoconnect(event_handlers)
self.ps.reload_threads()
- self.ps.load_cmdline()
self.show()
self.timer = gobject.timeout_add(2500, self.refresh)
try:
@@ -1438,7 +1436,6 @@ class gui:
self.ps.reload()
self.ps.reload_threads()
self.irqview.refresh()
- self.ps.load_cmdline()
self.procview.show()
return True