diff options
-rw-r--r-- | pyload/web/app/scripts/helpers/formatSize.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/web/app/scripts/helpers/formatSize.js b/pyload/web/app/scripts/helpers/formatSize.js index ddd62a1a5..1fe04f6b0 100644 --- a/pyload/web/app/scripts/helpers/formatSize.js +++ b/pyload/web/app/scripts/helpers/formatSize.js @@ -7,7 +7,7 @@ define('helpers/formatSize', ['handlebars', 'utils/i18n'], function(Handlebars, //multiplier 1024 is used for trafficleft because trafficleft is in KiB if (typeof multiplier === 'number') bytes = bytes * multiplier; - + if (!bytes || bytes === 0) return '0 B'; if (bytes === -1) return i18n.gettext('not available'); |