Fix return code check after call to pmTraversePMNS - this
function returns the number of children of the given node
(which is non-zero for non-leaf nodes). This resolves an
incorrect warning e.g. "Problem with lookup for metric...
metric ignored. Reason: No such PMAPI error code (N)" we
saw when using pmlogextract with non-leaf names (which it
otherwise handles correctly).
Fix return code check after call to pmTraversePMNS - this
function returns the number of children of the given node
(which is non-zero for non-leaf nodes). This resolves an
incorrect warning e.g. "Problem with lookup for metric...
metric ignored. Reason: No such PMAPI error code (N)" we
saw when using pmlogextract with non-leaf names (which it
otherwise handles correctly).