From 63365e7db725ccfcdf0f45aa9f9798c0dd601591 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 19:10:59 +0100 Subject: [PATCH] Fix bad function --- assets/js/common/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/common/utils.js b/assets/js/common/utils.js index e6847193..f68d5e1f 100644 --- a/assets/js/common/utils.js +++ b/assets/js/common/utils.js @@ -841,5 +841,5 @@ function rpad(str, len, fill) { * @param {number} size The size to format */ 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"; } \ No newline at end of file