vl.values_len = 1;
if (report_by_serial)
{
sstrncpy (vl.host, serial, sizeof (vl.host));
sstrncpy (vl.plugin_instance, hostname_g, sizeof (vl.plugin));
}
vl.values_len = 1;
if (report_by_serial)
{
sstrncpy (vl.host, serial, sizeof (vl.host));
sstrncpy (vl.plugin_instance, hostname_g, sizeof (vl.plugin));
}
sstrncpy (vl.plugin, "lpar", sizeof (vl.plugin));
sstrncpy (vl.type, "vcpu", sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
sstrncpy (vl.plugin, "lpar", sizeof (vl.plugin));
sstrncpy (vl.type, "vcpu", sizeof (vl.type));
sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));
double pool_idle_cpus;
double pool_busy_cpus;
/* We're calculating "busy" from "idle" and the total number of
* CPUs, because the "busy" member didn't exist in early versions
* of libperfstat. It was added somewhere between AIX 5.3 ML5 and ML9. */
double pool_idle_cpus;
double pool_busy_cpus;
/* We're calculating "busy" from "idle" and the total number of
* 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_idle_cticks = lparstats.pool_idle_time - lparstats_old.pool_idle_time;
+ pool_idle_cpus = CLOCKTICKS_TO_TICKS ((double) pool_idle_cticks) / (double) ticks;