diff options
author | jhb <jhb@FreeBSD.org> | 2011-07-18 21:15:47 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2011-07-18 21:15:47 +0000 |
commit | f3caef077b39887e5b737c600ec46379c99b7dc0 (patch) | |
tree | 51cdc1a8e25efa9aaf2fc32d7b692e155c57606c /lib/libc/string/wcscpy.c | |
parent | b1d0d78c9992104334a7be8a336e5ee2460b18e5 (diff) | |
download | FreeBSD-src-f3caef077b39887e5b737c600ec46379c99b7dc0.zip FreeBSD-src-f3caef077b39887e5b737c600ec46379c99b7dc0.tar.gz |
Rework the dynamic per-CPU stats code a bit. Always set 'statics->ncpus'
to the maximum number of CPUs to ensure that lcpustates[] array is always
allocated to the maximum size. Previously, if top was started without
per-CPU stats it would allocate a smaller lcpustates[] array. When
per-CPU stats were then enabled, it would overflow the array and trash
the cpustates_columns[] array causing the CPU stats to be printed in the
wrong locations.
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'lib/libc/string/wcscpy.c')
0 files changed, 0 insertions, 0 deletions