lpar plugin: Fix error handling of the "perfstat_partition_total" function.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 3 Sep 2010 10:48:26 +0000 (12:48 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 3 Sep 2010 10:48:26 +0000 (12:48 +0200)
commitfc562e3e9264474183b430f71972cca6434691b3
tree1c9dff6cf1e6ee5d3e4cbc6f0601d7b4617b9961
parent51f35f06cdcae02cc5c71baab2ac6a85d155d5a0
lpar plugin: Fix error handling of the "perfstat_partition_total" function.

According to the documentation the function returns -1 on error. The
code now assumes anything but one (the number of structures filled) as
error.
src/lpar.c