diff --git a/src/middleware/staticFileServingAndDirectoryListings.js b/src/middleware/staticFileServingAndDirectoryListings.js
index d210359..8080307 100644
--- a/src/middleware/staticFileServingAndDirectoryListings.js
+++ b/src/middleware/staticFileServingAndDirectoryListings.js
@@ -773,7 +773,7 @@ module.exports = (req, res, logFacilities, config, next) => {
.replace(/>/g, ">")}
${
estats.isDirectory()
? "-"
- : sizify(estats.size.toString())
+ : sizify(estats.size)
} | ${estats.mtime.toDateString()} | \r\n`;
// Determine the file type and set the appropriate image and alt text
diff --git a/src/utils/sizify.js b/src/utils/sizify.js
index 688ed54..b8780f1 100644
--- a/src/utils/sizify.js
+++ b/src/utils/sizify.js
@@ -1,5 +1,5 @@
function sizify(bytes, addI) {
- if (bytes === 0) return "0";
+ if (bytes == 0) return "0";
if (bytes < 0) bytes = -bytes;
const prefixes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y", "R", "Q"];