]> sourceware.org Git - systemtap.git/commitdiff
fix monitor mode: output was being limited to first n rows
authorFelix Lu <flu@redhat.com>
Wed, 23 Mar 2016 17:40:28 +0000 (13:40 -0400)
committerFelix Lu <flu@redhat.com>
Wed, 23 Mar 2016 17:40:28 +0000 (13:40 -0400)
staprun/monitor.c

index 35d3269bfa0bc6fdb637fc77205194d690eb3fec..fb60fa5ea03f7aff8c05a232742d9666255741b3 100644 (file)
@@ -226,7 +226,7 @@ void monitor_render(void)
   /* Render previously recorded output */
   wclear(monitor_output);
   getmaxyx(monitor_output, monitor_y, monitor_x);
-  for (int i = 0; i < MIN(monitor_y, h_queue.count-output_scroll); i++)
+  for (int i = 0; i < h_queue.count-output_scroll; i++)
     wprintw(monitor_output, "%s", h_queue.lines[(h_queue.oldest+i) % MAX_HISTORY]);
   wrefresh(monitor_output);
 
This page took 0.032166 seconds and 5 git commands to generate.