This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

/proc patch


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.

Attachment: ChangeLog.txt
Description: Text document

Attachment: proc.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]