/proc patch

Chris January chris@atomice.net
Sat Aug 31 06:49:00 GMT 2002


This patch fixes the bug Emil Briggs found. It also uses the HZ define in
sys/param.h as the number of 'jiffies' per second, instead of hard-coding it
at 100.

Chris

---
2002-08-31  Christopher January  <chris@atomice.net>

	* fhandler_proc.cc: Add <sys/param.h> include.
	(format_proc_uptime): Use KernelTime and UserTime only as they include
	the other counters.
	(format_proc_stat): KernelTime includes IdleTime, so subtract IdleTime
	from KernelTime. Make number of 'jiffies' per second same as HZ define.
	* fhandler_process.cc: Add <sys/param.h> include.
	(format_process_stat): Make number of 'jiffies' per second same as
	HZ define. Use KernelTime and UserTime only to calculate start_time.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020831/5f163ea4/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc.patch
Type: application/octet-stream
Size: 3966 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020831/5f163ea4/attachment.obj>


More information about the Cygwin-patches mailing list