Formatting

2007-11-16  Soren Sandmann <sandmann@daimi.au.dk>

	* module/sysprof-module.c (n_traces_available): Formatting
	
	* module/sysprof-module.c (sysprof_poll): Require 16 traces rather
	than 8. 
	

svn path=/trunk/; revision=389
This commit is contained in:
Soren Sandmann
2007-11-17 03:48:31 +00:00
committed by Søren Sandmann Pedersen
parent c00ccd69c7
commit 41efdc9c7e
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
* module/sysprof-module.c (n_traces_available): Formatting
* module/sysprof-module.c (sysprof_poll): Require 16 traces rather
than 8.
2007-11-16 Soren Sandmann <sandmann@daimi.au.dk>
* TODO: updates

View File

@ -169,6 +169,8 @@ in_dead_period (Collector *collector)
static void
collect_traces (Collector *collector)
{
int n;
/* After a reset we ignore samples for a short period so that
* a reset will actually cause 'samples' to become 0
*/

View File

@ -236,7 +236,7 @@ sysprof_read(struct file *file, char *buffer, size_t count, loff_t *offset)
}
static int
n_traces_available (SysprofStackTrace *tail)
n_traces_available(SysprofStackTrace *tail)
{
SysprofStackTrace *head = &(area->traces[area->head]);
@ -251,12 +251,12 @@ sysprof_poll(struct file *file, poll_table *poll_table)
{
SysprofStackTrace *tail = file->private_data;
if (n_traces_available (tail) >= 8)
if (n_traces_available (tail) >= 16)
return POLLIN | POLLRDNORM;
poll_wait(file, &wait_for_trace, poll_table);
if (n_traces_available (tail) >= 8)
if (n_traces_available (tail) >= 16)
return POLLIN | POLLRDNORM;
return 0;