diff --git a/phosta.pl b/phosta.pl

index df8ecb3621ebcaebe01f47da1264778c3ec93f00..09f6f52934e64e3bfeb779666d831fb58029ca40 100755

--- a/phosta.pl

+++ b/phosta.pl

@@ -125,31 +125,28 @@ my @lines = $cmd;

 my $dbh = DBI->connect($dsn, '', '', { RaiseError => 1 }) or die $DBI::errstr;

 my $errorcount = 0;

 foreach (@lines)

 {

     chomp $_;

     my ($file, $maker, $model, $lensmake, $lens, $lensmodel, $fl, $fl35, $apert, $exposuretime, $ss, $iso, $flash, $datetimeoriginal) = split(/#/, $_);

     my @forbidden_content = ('Unknown', 'N/A', '-', '');

     $lens = ($lens ~~ @forbidden_content) ? $lensmodel : $lens;

     $apert = ($apert ne '-') ? sprintf("%.1f", $apert) : $apert;

     $fl = ($fl ne '-') ? sprintf("%.1f", $fl) : $fl;

     $fl35 = ($fl35 ne '-') ? POSIX::lround($fl35) : $fl35;

     $exposuretime = (looks_like_number($exposuretime) && $exposuretime < 1 && $exposuretime != 0) ? "1/". POSIX::lround(1/$exposuretime) : $exposuretime;

     my $stmt = "INSERT OR REPLACE INTO photos (file, maker, model, lensmake, lens, focallength, focallength35mm, aperture, exposuretime, iso, flash, datetimeoriginal)

            VALUES ('$file', '$maker', '$model', '$lensmake', '$lens', '$fl', '$fl35', '$apert', '$exposuretime', '$iso', '$flash', '$datetimeoriginal')"; 

     my $rv = $dbh->do($stmt) or $errorcount++; 

 }

 $dbh->disconnect();

 say sprintf('%5d', $errorcount). ' image files skipped due to errors';

 say "Updated database $opt_D.";

}

Proxy Information
Original URL
gemini://gmn.clttr.info/sources/photo-stats.git/commits/938f14feee2dffe341c5466f38ce211c4dd67cdc.patch
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
135.730027 milliseconds
Gemini-to-HTML Time
1.014901 milliseconds

This content has been proxied by September (ba2dc).