Skip to content

Commit

Permalink
size fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Aug 22, 2017
1 parent 686ae7b commit bd65b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ var utils = {

formatSize: function (size) {
if (size < 1024) {
return size + ' bytes'
return size.toFixed(0) + ' bytes'
} else if (size < 1024 * 1024) {
return (size / 1024.0).toFixed(0) + ' KB'
} else if (size < 1024 * 1024 * 1024) {
Expand Down

0 comments on commit bd65b21

Please sign in to comment.