| To: | pcp developers <pcp@xxxxxxxxxxx> |
|---|---|
| Subject: | pmrep: one more Python compat fix |
| From: | Marko Myllynen <myllynen@xxxxxxxxxx> |
| Date: | Thu, 16 Jun 2016 08:42:49 +0300 |
| Delivered-to: | pcp@xxxxxxxxxxx |
| Organization: | Red Hat |
| Reply-to: | Marko Myllynen <myllynen@xxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
---
src/pmrep/pmrep.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pmrep/pmrep.py b/src/pmrep/pmrep.py
index b330ca6..815a12d 100755
--- a/src/pmrep/pmrep.py
+++ b/src/pmrep/pmrep.py
@@ -1195,12 +1195,12 @@ class PMReporter(object):
data = 1
inst = self.insts[i][1][j]
if self.descs[i].contents.type == PM_TYPE_STRING:
- self.pmi.pmiPutValue(metric, inst,
str(values[i][j][2]))
+ self.pmi.pmiPutValue(metric, inst,
str(list(values[i])[j][2]))
elif self.descs[i].contents.type == PM_TYPE_FLOAT or \
self.descs[i].contents.type == PM_TYPE_DOUBLE:
- self.pmi.pmiPutValue(metric, inst, "%f" %
values[i][j][2])
+ self.pmi.pmiPutValue(metric, inst, "%f" %
list(values[i])[j][2])
else:
- self.pmi.pmiPutValue(metric, inst, "%d" %
values[i][j][2])
+ self.pmi.pmiPutValue(metric, inst, "%d" %
list(values[i])[j][2])
# Flush
if data:
Thanks,
--
Marko Myllynen
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pcp updates - mgoodwin merge fix for derived memleak + QA, and nathans - QA rc_pmcd warnings, Mark Goodwin |
|---|---|
| Next by Date: | [Bug 1331973] memory leak in erroneous derived-metrics, bugzilla |
| Previous by Thread: | pcp updates - mgoodwin merge fix for derived memleak + QA, and nathans - QA rc_pmcd warnings, Mark Goodwin |
| Next by Thread: | ÐÐÑÐÑÐÑÑÑ Ð ÐÐÐ ÐÐ ÐÐÐÐÑÑÑ., ÐÐÐÐÐÐÑÐÐ ÐÐÑÑ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |