| To: | pcp developers <pcp@xxxxxxxxxxx> |
|---|---|
| Subject: | pmfg / pmapi / null indom |
| From: | Marko Myllynen <myllynen@xxxxxxxxxx> |
| Date: | Tue, 27 Sep 2016 16:37:37 +0300 |
| Delivered-to: | pcp@xxxxxxxxxxx |
| Organization: | Red Hat |
| Reply-to: | Marko Myllynen <myllynen@xxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
Hi,
Consider the following example:
#!/usr/bin/python
from pcp import pmapi
pmfg = pmapi.fetchgroup()
sysload = pmfg.extend_indom("kernel.all.sysfork")
pmfg.fetch()
for inst, name, value in sysload():
print("inst: %d" % inst)
This prints:
inst: -1
Is this some constant or should this be None in the land of Python?
Thanks,
--
Marko Myllynen
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pcp updates - merge kenj and nathan - final changes for 3.11.5, Mark Goodwin |
|---|---|
| Next by Date: | Re: [pcp] pmfg / pmapi / null indom, Nathan Scott |
| Previous by Thread: | pcp updates - merge kenj and nathan - final changes for 3.11.5, Mark Goodwin |
| Next by Thread: | Re: [pcp] pmfg / pmapi / null indom, Nathan Scott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |