* New icons
[ubi] / qml / ubi / bytesconv.js
index 6492a4a..c08dc98 100644 (file)
@@ -3,7 +3,7 @@
 
 function bytesToSize(bytes) {
     var sizes = ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
-    if (bytes == 0) return 'n/a';
+    if (bytes == 0) return '0 bytes';
     var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
     if (i == 0) { return (bytes / Math.pow(1024, i)) + ' ' + sizes[i]; }
     return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];