start_time patch for fhandler_process.cc

Christopher Faylor cgf@redhat.com
Thu Jul 10 00:01:00 GMT 2003


On Wed, Jul 09, 2003 at 11:11:48AM +0100, Chris January wrote:
>
>> On Tue, Jul 08, 2003 at 07:09:12PM +0100, Chris January wrote:
>> >Try this Chris and see if it solves the start time problem.
>> >
>> >Chris
>> >
>> >2003-07-28  Chris January  <kseitz@chris@atomice.net>
>> >
>> >	* fhandler_process.cc (format_process_stat): Changed the
>> calculation for
>> >start_time.
>>
>> Sorry, no.
>>
>> Unknown HZ value! (250) Assume 100.
>> USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
>> cgf       3452  0.0  1.0  2544 2680 ?        R    Aug08   0:00 procps auwx
>>
>> Now that I've read the description of what the field is supposed to
>> contain, I'm wondering if the culprit is the "Unknown HZ value! (250)
>> Assume 100."
>Maybe sysconf (_SC_NPROCESSORS_CONF) is reporting the wrong amount if the
>problem is indeed you are running on an SMP machine.

_SC_NPROCESSORS_CONF returns two, as it should.
_SC_NPROCESSORS_ONLN returned three, which was wrong, but I just checked in
a fix for that.  No change after that, though.

I guess I'll build procps and see what's up.

cgf



More information about the Cygwin-patches mailing list