summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-30 13:37:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-30 13:37:22 +0200
commit702002d7d9dae38e7ae375dafefa20ae0f865a16 (patch)
tree93a6dbbd5ec11cb1f2b86a1cb887a9867d202d42 /bin/efa-m
parente2ece5a9c331ad62fb93cffb633315b5268f8851 (diff)
EFA, efa-m: Add timeout parameter
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 896dad1..040026f 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -57,7 +57,7 @@ my $status = Travel::Status::DE::EFA->new(
name => $input,
time => $time,
type => $input_type,
- timeout => $timeout // 10,
+ timeout => $timeout,
);
sub show_help {
@@ -252,7 +252,8 @@ than others. See Travel::Status::DE::EFA(3pm) for alternatives.
=item B<--timeout> I<seconds>
-Set timeout for HTTP requests. Default: 10 seconds.
+Set timeout for HTTP requests. Default: 10 seconds. Set to 0 or a negative
+value to disable it.
=item B<-V>, B<--version>