diff options
Diffstat (limited to 'sysdeps/solaris/cpu.c')
-rw-r--r-- | sysdeps/solaris/cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/solaris/cpu.c b/sysdeps/solaris/cpu.c index 49f60ef4..46de3cd9 100644 --- a/sysdeps/solaris/cpu.c +++ b/sysdeps/solaris/cpu.c @@ -53,14 +53,14 @@ _glibtop_init_cpu_s (glibtop *server) void glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf) { - kstat_ctl_t * const kc = server->machine.kc; + kstat_ctl_t * const kc = server->machine->kc; cpu_stat_t cpu_stat; processorid_t cpu; int ncpu, found; memset (buf, 0, sizeof (glibtop_cpu)); - buf->frequency = server->machine.ticks; + buf->frequency = server->machine->ticks; buf->flags = _glibtop_sysdeps_cpu_freq; if(!kc) @@ -77,7 +77,7 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf) for (cpu = 0, found = 0; cpu < GLIBTOP_NCPU && found != ncpu; cpu++) { - kstat_t * const ksp = server->machine.cpu_stat_kstat [cpu]; + kstat_t * const ksp = server->machine->cpu_stat_kstat [cpu]; if (!ksp) continue;; ++found; |