catalyst / moodle-report_coursesize

upgraded coursesize report
14 stars 19 forks source link

Reported file sizes are wrong due to the conversion to MiB but displayed as MB #26

Closed alexmorrisnz closed 3 years ago

alexmorrisnz commented 3 years ago

The usage is calculated in MiB and then displayed using the MB suffix, however the two the different units and mixing them like this causes the reported sizes to be incorrect. See here: https://github.com/catalyst/moodle-report_coursesize/blob/master/index.php#L72

"the effect is that the site will report itself to be using 500 MB of disk space but in reality it is using 500 MiB of disk space, which is equal to 524.288 MB of disk space."