Fix display of long shutter times.
authorSteinar H. Gunderson <sesse@debian.org>
Sun, 1 Nov 2009 20:48:54 +0000 (21:48 +0100)
committerSteinar H. Gunderson <sesse@debian.org>
Sun, 1 Nov 2009 20:48:54 +0000 (21:48 +0100)
perl/Sesse/pr0n/Common.pm

index ee1718e16af5293441178a3d4114ef3d5e73a108..2ab7b3ae242569976891f1e104d144a0622e5e4b 100644 (file)
@@ -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 ];
        }