diff options
| author | rm88369 <none@none> | 2005-06-20 01:25:19 -0700 |
|---|---|---|
| committer | rm88369 <none@none> | 2005-06-20 01:25:19 -0700 |
| commit | 30cb31d30950e7bd861408bee542401e3da163a5 (patch) | |
| tree | 806c0134cb459a7a3b3603471356c365002d83cf /usr/src/cmd | |
| parent | 76077dde6515256a9f6771cef7fdf0dce70dc151 (diff) | |
| download | illumos-joyent-30cb31d30950e7bd861408bee542401e3da163a5.tar.gz | |
6257191 sar doesn't normalize for number of cpus giving incorrect results
Diffstat (limited to 'usr/src/cmd')
| -rw-r--r-- | usr/src/cmd/sa/sadc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sa/sadc.c b/usr/src/cmd/sa/sadc.c index 8031aa1cf6..69fbd0472b 100644 --- a/usr/src/cmd/sa/sadc.c +++ b/usr/src/cmd/sa/sadc.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -424,7 +424,7 @@ all_stat_load(void) */ compute_cpu_stat_adj(); for (i = 0; i < CPU_STATES; i++) - d.csi.cpu[i] = cpu_tick[i] + cpu_stat_adj[i]; + d.csi.cpu[i] = (cpu_tick[i] + cpu_stat_adj[i]) / ncpus; return (0); } |
