jhb
f3caef077b
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
2011-07-18 21:15:47 +00:00
..
2009-07-11 22:30:37 +00:00
2011-07-16 11:12:09 +00:00
2011-06-23 20:54:44 +00:00
2011-05-03 10:11:44 +00:00
2010-11-09 18:32:57 +00:00
2010-04-14 19:08:06 +00:00
2011-06-03 17:49:16 +00:00
2011-07-14 14:01:36 +00:00
2010-02-28 22:06:07 +00:00
2010-10-08 09:43:06 +00:00
2009-12-11 02:09:46 +00:00
2010-11-22 14:42:13 +00:00
2011-07-01 20:45:55 +00:00
2011-05-22 22:14:15 +00:00
2011-06-14 15:20:30 +00:00
2011-03-12 07:03:06 +00:00
2011-06-18 13:56:33 +00:00
2011-06-08 08:08:42 +00:00
2010-11-18 18:30:03 +00:00
2011-06-09 22:52:57 +00:00
2011-06-28 00:58:12 +00:00
2011-03-29 20:53:51 +00:00
2011-07-17 19:51:40 +00:00
2011-06-30 20:58:38 +00:00
2010-07-25 11:48:27 +00:00
2011-05-11 21:52:26 +00:00
2010-05-24 06:26:38 +00:00
2011-06-29 13:01:10 +00:00
2010-05-28 09:30:13 +00:00
2011-03-21 09:58:24 +00:00
2011-05-06 14:21:46 +00:00
2011-05-25 14:13:53 +00:00
2010-03-22 11:00:57 +00:00
2011-05-01 15:46:18 +00:00
2010-05-27 03:15:04 +00:00
2011-07-17 17:33:39 +00:00
2011-06-30 20:55:16 +00:00
2010-01-25 18:35:58 +00:00
2010-07-22 18:52:29 +00:00
2010-10-28 19:10:15 +00:00
2011-04-28 14:43:38 +00:00
2010-04-30 19:52:35 +00:00
2011-05-03 14:43:16 +00:00
2011-06-20 08:00:32 +00:00
2011-07-18 21:15:47 +00:00
2011-06-26 19:03:33 +00:00
2010-10-27 07:14:46 +00:00
2011-06-28 10:24:01 +00:00
2010-11-03 10:46:39 +00:00
2011-07-11 14:15:27 +00:00