mirror of
https://github.com/fatedier/frp.git
synced 2026-03-20 16:59:18 +08:00
web/frpc: redesign dashboard (#5145)
This commit is contained in:
@@ -28,6 +28,6 @@ export function formatFileSize(bytes: number): string {
|
||||
// Prevent index out of bounds for extremely large numbers
|
||||
const unit = sizes[i] || sizes[sizes.length - 1]
|
||||
const val = bytes / Math.pow(k, i)
|
||||
|
||||
|
||||
return parseFloat(val.toFixed(2)) + ' ' + unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user