Commit 25f8226f authored by Daniele Venzano's avatar Daniele Venzano

Return after formatting for 0 byte sizes

parent ce96a1a0
......@@ -36,8 +36,10 @@
}
function format_bytes(bytes, decimals) {
if(bytes == 0)
if(bytes == 0) {
document.write('0 Byte');
return;
}
var k = 1000;
var dm = decimals + 1 || 3;
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment