pcp
[Top] [All Lists]

pmie quirk-of-the-day

To: pcp@xxxxxxxxxxx
Subject: pmie quirk-of-the-day
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Thu, 29 Jan 2009 15:24:37 +1100
Hi all,

Is there any way to extract the value from a sum_inst()
expression in pmie?  Seems to fail to print anything in
case where a sum_inst is the left-most-expression...?
(not even the rest of the string, let alone the value
which is what I really wanted).

A contrived example follows:

$ cat sumbug 
test1 = (kernel.all.load #'1 minute') < sum_inst(kernel.all.load)
-> print "TEST1: Left-most expression: v=%v h=%h";
test2 = sum_inst(kernel.all.load) >= (kernel.all.load #'1 minute')
-> print "TEST2: Left-most expression: v=%v h=%h";

$ pmie -c sumbug -v -t1
Thu Jan 29 15:23:03 2009: TEST1: Left-most expression: v=2.15 h=edge
Thu Jan 29 15:23:03 2009: (null)
test1: true
test2: true
...


cheers.

--
Nathan

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