diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-03 17:45:02 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-03 17:45:02 +0100 |
commit | 1ee25e2950d1898d22ef2d6e14d8543a1cd614c2 (patch) | |
tree | 73a7bff0cc2afc40b6835a7ad17e98c146a328d4 /bin | |
parent | 668a0601097750e72c2ac1e61ffc050425d616b1 (diff) |
shorten 'walk' lines, arr/dep time and place are not relevant here
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hafas | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -287,19 +287,8 @@ for my $res ( @{ $hafas->{results} } ) { ); } elsif ( $sec->type eq 'WALK' ) { - printf( - "%-5s %-${have_delay}s ab %s\n", - $sec->dep_datetime->strftime('%H:%M'), - q{}, $sec->dep_loc->name - ); - printf( "%10s%${have_delay}s Fußweg %dm (%02d:%02d)\n", - q{}, q{}, $sec->distance, - $sec->duration->in_units( 'hours', 'minutes' ) ); - printf( - "%-5s %-${have_delay}s an %s\n", - $sec->arr_datetime->strftime('%H:%M'), - q{}, $sec->arr_loc->name - ); + printf( "# Walk %dm (approx. %d minutes)\n", + $sec->distance, $sec->duration->in_units('minutes') ); } else { printf("\n???\n"); |