Commit 059f121e authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

stats: Fix strftime typo, only save timestamp where needed

parent 4a1fded7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 );
	}