summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS.pm
diff options
context:
space:
mode:
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 );
}