Just put a hyphen

This commit is contained in:
Girish Ramakrishnan
2020-03-06 20:38:48 -08:00
parent ebd365a156
commit dbca88829a

View File

@@ -287,7 +287,7 @@ app.filter('prettyMemory', function () {
app.filter('prettyDiskSize', function () {
return function (size) {
if (!size) return 'Not available yet';
if (!size) return ' - ';
var i = Math.floor(Math.log(size) / Math.log(1024));
return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i]; };
});