From c8cf652e299267d7020a00d0f1e6043f430878d6 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 3 Nov 2020 06:53:23 -0500 Subject: [PATCH] import ps_mem-3.6-7.el8 --- SOURCES/ps_mem.py | 2 +- SPECS/ps_mem.spec | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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