Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
procps
procps-3.2.5-CPU-states.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File procps-3.2.5-CPU-states.patch of Package procps
--- top.c +++ top.c @@ -930,6 +930,14 @@ rewind(fp); fflush(fp); + /* save the previous values of cpus[Cpu_tot](i.e. u_sav, s_sav, n_sav, i_sav, + * w_sav, x_sav, y_sav) to cpus[cpu_max] before any changes to cpus[], so these + * values are not overwritten when copying cpus[cpu_max] back to cpus[Cpu_tot] + * at the end of this function. + */ + if (cpu_max != Cpu_tot) + memcpy(&cpus[cpu_max], &cpus[Cpu_tot], sizeof(CPU_t)); + // first value the last slot with the cpu summary line if (!fgets(buf, sizeof(buf), fp)) std_err("failed /proc/stat read"); cpus[cpu_max].x = 0; // FIXME: can't tell by kernel version number
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor