Fix bad function

This commit is contained in:
Pierre HUBERT 2021-03-06 19:10:59 +01:00
parent 04c7d31f12
commit 63365e7db7

View File

@ -841,5 +841,5 @@ function rpad(str, len, fill) {
* @param {number} size The size to format * @param {number} size The size to format
*/ */
function fileSizeToHuman(size) { function fileSizeToHuman(size) {
return Math.round(ServerConfig.conf.conversation_files_max_size/(1000*1000)*100)/100 + "MB"; return Math.round(size/(1000*1000)*1000)/1000 + "MB";
} }