Re: pmfg / pmapi / null indom

Nathan Scott <[email protected]>
Newsgroups gmane.comp.sysutils.pcp
Message-ID <[email protected]>
Hi Marko,

----- Original Message -----
> 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?
> 

Its cpmapi.PM_IN_NULL (aka "grep PM_IN_NULL /usr/include/pcp/pmapi.h")

cheers.

--
Nathan

_______________________________________________
pcp mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/pcp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.