From bd65b217f7d91b2a822f0bc587d3bc86e192377e Mon Sep 17 00:00:00 2001 From: dolymood Date: Tue, 22 Aug 2017 15:54:12 +0800 Subject: [PATCH] size fixed --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 95892b0..5edfcb1 100644 --- a/src/utils.js +++ b/src/utils.js @@ -148,7 +148,7 @@ var utils = { formatSize: function (size) { if (size < 1024) { - return size + ' bytes' + return size.toFixed(0) + ' bytes' } else if (size < 1024 * 1024) { return (size / 1024.0).toFixed(0) + ' KB' } else if (size < 1024 * 1024 * 1024) {