From: Aurelien Reynaud Date: Thu, 14 Oct 2010 20:09:28 +0000 (+0200) Subject: lpar plugin: update commen t regarding poll_idle vs pool_busy X-Git-Tag: collectd-5.0.0-beta0~27^2~1 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=98290217039439918c6271a187a2451f16a09b60 lpar plugin: update commen t regarding poll_idle vs pool_busy Signed-off-by: Aurelien Reynaud Signed-off-by: Florian Forster --- diff --git a/src/lpar.c b/src/lpar.c index b9471fb7..d25715e8 100644 --- a/src/lpar.c +++ b/src/lpar.c @@ -241,9 +241,8 @@ static int lpar_read (void) double pool_busy_cpus; /* We're calculating "busy" from "idle" and the total number of - * CPUs, because according to Aurélien Reynaud using the "busy" - * member yields values that differ from the values produced by - * the LPAR command line tools. --octo */ + * CPUs, because the "busy" member didn't exist in early versions + * of libperfstat. It was added somewhere between AIX 5.3 ML5 and ML9. */ pool_idle_ns = lparstats.pool_idle_time - lparstats_old.pool_idle_time; pool_idle_cpus = NS_TO_TICKS ((double) pool_idle_ns) / (double) ticks; pool_busy_cpus = ((double) lparstats.phys_cpus_pool) - pool_idle_cpus;