pcp
[Top] [All Lists]

Re: pmLookupName sts differences

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: pmLookupName sts differences
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Tue, 14 Apr 2015 20:09:46 -0400
Cc: Martins Innus <minnus@xxxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <552D7DE8.4030706@xxxxxxxxxxxxxxxx> (Ken McDonell's message of "Wed, 15 Apr 2015 06:51:52 +1000")
References: <551D8119.5010404@xxxxxxxxxxx> <552CA769.1070607@xxxxxxxxxxxxxxxx> <552D1EE1.5000600@xxxxxxxxxxx> <552D7DE8.4030706@xxxxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Ken McDonell <kenj@xxxxxxxxxxxxxxxx> writes:

> [...]
> 1. if numpmid == 1, then return 1 for success else an error code (<0)
> ... this special case is really required to allow a caller to discover
> _why_ a lookup failed for a particular metric
> 2. if numpmid > 1, then 3 cases apply
> [...]
>    - otherwise, return n (0 <= n < numpmid) as the count for those
> that are OK

I don't quite understand why 1 and >1 cases are different.  What
reason could the caller discover in the first case, that she wouldn't
also want to know about the others?


- FChE

<Prev in Thread] Current Thread [Next in Thread>