Formatting
authorSoren Sandmann <sandmann@daimi.au.dk>
Sat, 17 Nov 2007 03:48:31 +0000 (03:48 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Sat, 17 Nov 2007 03:48:31 +0000 (03:48 +0000)
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

ChangeLog
collector.c
module/sysprof-module.c

index 7e05036..23c2b14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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
        
        * module/sysprof-module.c (sysprof_poll): Only select readable
index c598b16..1c1b131 100644 (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
      */
index 71e5e95..1ae4cc2 100644 (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;