Changeset 7048 for trunk/prototype/modules
- Timestamp:
- 08/17/12 11:57:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/attach_message/attach_message.js
r6303 r7048 97 97 bytes2Size = function(bytes) { 98 98 var sizes = ['B', 'KB', 'MB', 'GB', 'TB']; 99 if (bytes == 0) return ' n/a';99 if (bytes == 0) return '0 Bytes'; 100 100 var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024))); 101 101 var size = (i<2) ? Math.round((bytes / Math.pow(1024, i))) : Math.round((bytes / Math.pow(1024, i)) * 100)/100;
Note: See TracChangeset
for help on using the changeset viewer.