aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-11-30 13:55:15 +0530
committerAmit Arora <amit.arora@linaro.org>2010-11-30 13:55:15 +0530
commit51d1b9c9b9988ef7101f542c3a16de4df546c028 (patch)
treea16e63747c7f238e881ce616641d7258d0e4b7d1 /clocks.c
parent8a7163fbf976a6868d683bbcdfe2a72c329faf55 (diff)
downloadpowerdebug-51d1b9c9b9988ef7101f542c3a16de4df546c028.tar.gz
Fix scrolling for first clock beyond screen
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clocks.c b/clocks.c
index de2375a..e20553e 100644
--- a/clocks.c
+++ b/clocks.c
@@ -100,8 +100,8 @@ int read_and_print_clock_info(int verbose, int hrow, int selected)
int calc_delta_screen_size(int hrow)
{
- if (hrow > (maxy - 3))
- return hrow - (maxy - 3);
+ if (hrow >= (maxy - 3))
+ return hrow - (maxy - 4);
return 0;
}