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
|