Module Name: src Committed By: tls Date: Sun Aug 10 07:10:19 UTC 2014
Modified Files: src/external/bsd/top/dist [tls-earlyentropy]: display.c Log Message: Rebase. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.9.22.1 src/external/bsd/top/dist/display.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/top/dist/display.c diff -u src/external/bsd/top/dist/display.c:1.9 src/external/bsd/top/dist/display.c:1.9.22.1 --- src/external/bsd/top/dist/display.c:1.9 Sat Jul 3 13:18:57 2010 +++ src/external/bsd/top/dist/display.c Sun Aug 10 07:10:19 2014 @@ -723,8 +723,9 @@ display_resize() /* adjust total lines on screen to lines available for procs */ if (top_lines < y_procs) - return -1; - top_lines -= y_procs; + top_lines = 0; + else + top_lines -= y_procs; /* return number of lines available */ return top_lines;