Use binary units for sizes, not decimal values.
authorMarcel Pol <marcel@timelord.nl>
Wed, 10 Mar 2021 12:47:33 +0000 (13:47 +0100)
committerMarcel Pol <marcel@timelord.nl>
Wed, 10 Mar 2021 12:47:33 +0000 (13:47 +0100)
commit319f58d9c1d7c35ade90094b2e196e220da7a864
tree7f433452c245b34345c728715cccf8258c4608ec
parent724caf64b3dd94cb3445f61449fd44d6d885893f
Use binary units for sizes, not decimal values.

KiB = 1024 bytes
MiB = 1024 * 1024 bytes
GiB = 1024 * 1024 * 1024 bytes

Please be aware, I am no C programmer. I also saw some use of Mb and mb,
which might indicate Megabit.
Please double check if my assumptions are correct.

Reference:
https://en.wikipedia.org/wiki/Byte#Multiple-byte_units

If the desire is to use decimal units like KB, MB and GB,
the code would need to be changed to use 1000 for kilo.
That is way over my head and not a good task for me.
src/filedata.c
src/pixbuf-renderer.c
src/pixbuf-renderer.h
src/preferences.c
src/renderer-tiles.c
src/trash.c