summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-03-18 16:39:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-03-18 16:39:19 +0100
commit059f121ebaa198ee2b105981b7f4abb5d1d12010 (patch)
treed00d8edb1a5d6ca112f2e4568dae16d141a5ba05 /lib/Travel/Status/DE/IRIS.pm
parent4a1fded77455749b803033eda0fa81a8b429d485 (diff)
stats: Fix strftime typo, only save timestamp where needed
Diffstat (limited to 'lib/Travel/Status/DE/IRIS.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm
index 9d5eebd..44a96d7 100644
--- a/lib/Travel/Status/DE/IRIS.pm
+++ b/lib/Travel/Status/DE/IRIS.pm
@@ -188,7 +188,9 @@ sub get_with_cache {
my $filename = $url;
$filename =~ s{ ^ .* iris-tts/ }{}x;
$filename =~ tr{/}{_};
- $filename = $self->{datetime}->strftime('%Y%m%d%H%%M%S_') . $filename;
+ if ( $filename =~ m{ fchg }x ) {
+ $filename .= $self->{datetime}->strftime('_%Y%m%d%H%M%S');
+ }
write_file( $self->{log_dir} . '/' . $filename, $content );
}