diff --git a/SOURCES/ps_mem.py b/SOURCES/ps_mem.py index 8e30bce..529acb6 100644 --- a/SOURCES/ps_mem.py +++ b/SOURCES/ps_mem.py @@ -245,7 +245,7 @@ def getMemStats(pid): def getCmdName(pid, split_args): cmdline = proc.open(pid, 'cmdline').read().split("\0") - if cmdline[-1] == '' and len(cmdline) > 1: + while cmdline[-1] == '' and len(cmdline) > 1: cmdline = cmdline[:-1] path = proc.path(pid, 'exe') diff --git a/SPECS/ps_mem.spec b/SPECS/ps_mem.spec index 39630e1..dfc081a 100644 --- a/SPECS/ps_mem.spec +++ b/SPECS/ps_mem.spec @@ -1,7 +1,7 @@ Name: ps_mem Version: 3.6 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Memory profiling tool Group: Applications/System License: LGPLv2 @@ -47,6 +47,11 @@ install -Dpm644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %changelog +* Tue Jun 30 2020 Jan Rybar - 3.6-7 +- gating activated +- cmdline unwanted blank spaces fixed +- Resolves: rhbz#1780986 + * Fri Feb 09 2018 Fedora Release Engineering - 3.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild