plegall / Piwigo-exif_view

4 stars 6 forks source link

Wrong very long exposure time, "2400/10" becomes "1/0s" #9

Open gali0 opened 5 years ago

gali0 commented 5 years ago

patch for https://github.com/plegall/Piwigo-exif_view/issues/5 is not correct as 30/1 is correctly printed but 2400/10 (240s exposure time) is not.

Probleme is here:

https://github.com/plegall/Piwigo-exif_view/blob/2e7451327d70b7fa5f9c6aa6ff2016a64771f289/main.inc.php#L117

become:

while ($tokens[1] % 10 == 0)

Tested with many picture on my piwigo and it work well.