From ffb3a4dbc7ec9609b34e9882bc7830a2c21173de Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 4 Oct 2019 23:15:18 +0200 Subject: fix off-by-one error in json_route_diff --- lib/DBInfoscreen.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index 44a5520..aad1290 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -219,7 +219,7 @@ sub startup { $sched_idx++; } } - while ( $route_idx < $#route ) { + while ( $route_idx <= $#route ) { push( @json_route, { @@ -230,7 +230,7 @@ sub startup { ); $route_idx++; } - while ( $sched_idx < $#sched_route ) { + while ( $sched_idx <= $#sched_route ) { push( @json_route, { -- cgit v1.2.3