From: Steinar H. Gunderson Date: Sun, 1 Nov 2009 20:48:54 +0000 (+0100) Subject: Fix display of long shutter times. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=1dd93b042b89b2661a557d862be84c9d57e84ea0;hp=9e34ef3368cd8f2e2a2f584e48a9e26aa2778552 Fix display of long shutter times. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index ee1718e..2ab7b3a 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -879,7 +879,7 @@ sub make_infobox { my ($a, $b) = ($1, $2); my $gcd = gcd($a, $b); push @classic_fields, [ $a/$gcd . "/" . $b/$gcd . "s", $shutter_priority ]; - } elsif (defined($info->{'ExposureTime'}) && $info->{'ExposureTime'} =~ /^(\d+(?:\.\d+))$/) { + } elsif (defined($info->{'ExposureTime'}) && $info->{'ExposureTime'} =~ /^(\d+(?:\.\d+)?)$/) { push @classic_fields, [ $1 . "s", $shutter_priority ]; }