Skip to content

Commit

Permalink
Reuse blocksAsBytes function in blocks filter
Browse files Browse the repository at this point in the history
To avoid duplicated code.
  • Loading branch information
pgiraud committed Mar 18, 2024
1 parent 6607e23 commit a32f0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function blocks(value: number, asHtml = false): string {
}
let r = value.toLocaleString()
if (asHtml) {
r += `<br><small>${formatBytes(value * 8 * 1024)}</small>`
r += `<br><small>${blocksAsBytes(value)}</small>`
}
return r
}
Expand Down

0 comments on commit a32f0b8

Please sign in to comment.