|
Description
|
usr/src/cmd/powertop/common/powertop.c has a typo in one of the calls to memset(3C):
268 (void) memset(g_cstate_info, NSTATES
269 * sizeof (state_info_t), 0);
This call has the second and third arguments inverted, as the memset(3C) routine has the following definition:
void *memset(void *s, int c, size_t n);
This causes the c-state information not to be cleared at every interval, accumulating data from the previous iterations of the main program loop.
|