From be0380ac6020556120269a0deecba7ffef63dcb0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 26 Nov 2018 20:10:24 +0100 Subject: Use ::Section module for section data --- bin/dbwagenreihung | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/dbwagenreihung') diff --git a/bin/dbwagenreihung b/bin/dbwagenreihung index 0d75fd7..dafefe3 100755 --- a/bin/dbwagenreihung +++ b/bin/dbwagenreihung @@ -33,7 +33,7 @@ my $wr = Travel::Status::DE::DBWagenreihung->new( ); for my $section ($wr->sections) { - my $section_length = $section->{end_percent} - $section->{start_percent}; + my $section_length = $section->length_percent; my $spacing_left = int(($section_length - 2) / 2) - 1; my $spacing_right = int(($section_length - 2) / 2); @@ -43,7 +43,7 @@ for my $section ($wr->sections) { printf("|%s%s%s|", ' ' x $spacing_left, - $section->{name}, + $section->name, ' ' x $spacing_right ); } -- cgit v1.2.3