summaryrefslogtreecommitdiff
path: root/http/file_server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'http/file_server.ts')
-rwxr-xr-xhttp/file_server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/http/file_server.ts b/http/file_server.ts
index 5ef891aa8..54979bf3e 100755
--- a/http/file_server.ts
+++ b/http/file_server.ts
@@ -86,16 +86,16 @@ function modeToString(isDir: boolean, maybeMode: number | null): string {
}
function fileLenToString(len: number): string {
- const multipler = 1024;
+ const multiplier = 1024;
let base = 1;
const suffix = ["B", "K", "M", "G", "T"];
let suffixIndex = 0;
- while (base * multipler < len) {
+ while (base * multiplier < len) {
if (suffixIndex >= suffix.length - 1) {
break;
}
- base *= multipler;
+ base *= multiplier;
suffixIndex++;
}