Blame SOURCES/sos-bz1639166-pcp-pmlogger-no-limit.patch
|
|
d8dc0d |
From 380737d0bf4021434db4d5e479f0b8a2aece6ec9 Mon Sep 17 00:00:00 2001
|
|
|
d8dc0d |
From: Pavel Moravec <pmoravec@redhat.com>
|
|
|
d8dc0d |
Date: Thu, 4 Apr 2019 10:43:24 +0200
|
|
|
d8dc0d |
Subject: [PATCH] [pcp] collect pmlogger without a sizelimit
|
|
|
d8dc0d |
|
|
|
d8dc0d |
sizelimit=None defaults to --log-size, use sizelimit=0 instead
|
|
|
d8dc0d |
|
|
|
d8dc0d |
Resolves: #1632
|
|
|
d8dc0d |
|
|
|
d8dc0d |
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
d8dc0d |
---
|
|
|
d8dc0d |
sos/plugins/pcp.py | 2 +-
|
|
|
d8dc0d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d8dc0d |
|
|
|
d8dc0d |
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
|
|
|
d8dc0d |
index da7158a6..da2a6611 100644
|
|
|
d8dc0d |
--- a/sos/plugins/pcp.py
|
|
|
d8dc0d |
+++ b/sos/plugins/pcp.py
|
|
|
d8dc0d |
@@ -130,7 +130,7 @@ class Pcp(Plugin, RedHatPlugin, DebianPlugin):
|
|
|
d8dc0d |
pmlogger_ls = self.get_cmd_output_now("ls -t1 %s" % path)
|
|
|
d8dc0d |
if pmlogger_ls:
|
|
|
d8dc0d |
for line in open(pmlogger_ls).read().splitlines():
|
|
|
d8dc0d |
- self.add_copy_spec(line, sizelimit=None)
|
|
|
d8dc0d |
+ self.add_copy_spec(line, sizelimit=0)
|
|
|
d8dc0d |
files_collected = files_collected + 1
|
|
|
d8dc0d |
if self.countlimit and files_collected == self.countlimit:
|
|
|
d8dc0d |
break
|
|
|
d8dc0d |
--
|
|
|
d8dc0d |
2.17.2
|
|
|
d8dc0d |
|