From 42cbd0df4700eaabbd96bd48dccefc770dc03862 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 9 Dec 2005 20:33:20 +0000 Subject: [PATCH] kstat_chain_update in first call to get_multi_kstats --- src/os/solaris/kstats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/solaris/kstats.c b/src/os/solaris/kstats.c index d354ad99..4d8809a2 100644 --- a/src/os/solaris/kstats.c +++ b/src/os/solaris/kstats.c @@ -12,11 +12,12 @@ int sigar_get_multi_kstats(sigar_t *sigar, kstat_t *ksp; int i = 0; int dev; + kid_t id = sigar_kstat_update(sigar); name += kl->nlen; /* e.g. "hme0" + 3 */ dev = atoi(name); - if ((kl->num == 0) || (sigar_kstat_update(sigar) > 0)) { + if ((kl->num == 0) || (id > 0)) { while ((ksp = kstat_lookup(kc, kl->name, i, NULL))) { if (i+1 > kl->num) { kl->num = i+1;