summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/hafas b/bin/hafas
index 7d51f7d..deccb63 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -374,8 +374,11 @@ for my $res ( $hafas->connections ) {
}
elsif ( $sec->type eq 'WALK' ) {
printf(
- "${output_bold}Walk %dm${output_reset} (approx. %d minutes)",
- $sec->distance, $sec->duration->in_units('minutes') );
+ "${output_bold}Walk %dm${output_reset} (approx. %d minute%s)",
+ $sec->distance,
+ $sec->duration->in_units('minutes'),
+ $sec->duration->in_units('minutes') == 1 ? q{} : 's'
+ );
}
else {
printf("\n???\n");