summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-10-04 23:15:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-10-04 23:15:18 +0200
commitffb3a4dbc7ec9609b34e9882bc7830a2c21173de (patch)
tree1f9994a0a7bbabb41d4e2821159411dc022fadef /lib/DBInfoscreen.pm
parent626313db001765cf388ea9830e5a16e84e4ef62e (diff)
fix off-by-one error in json_route_diff2.3.7
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm4
1 files 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,
{