https://bugzilla.wikimedia.org/show_bug.cgi?id=68035

--- Comment #4 from Betacommand <[email protected]> ---
Its invalid as this isnt an issue with mediawiki/wikimedia and rather an issue
with one of my old scripts. 

The API provides file size in bytes. See
https://commons.wikimedia.org/w/api.php?action=query&titles=File:Stained_glass_window_at_the_16th_Street_Baptist_Church_in_Birmingham.jpg&prop=imageinfo&iiprop=timestamp|user|size&format=jsonfm
 

In this case the API returned 1793980 which for most humans doesnt make much
sense. I ran a custom conversion to get the Kb/Mb/Gb values. In this particular
case I was exactly 1 magnitude (Mb/Gb) off. I suspect it was an error in the
conversion equation that I was using that caused what you noted and that I had
swaped the Mb suffix with the Gb suffix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to