Remove console.log

This commit is contained in:
Roger Far 2020-05-16 20:19:53 -06:00
parent 7c6458bbb0
commit 914272d6d7

View file

@ -1,7 +1,7 @@
import { Pipe, PipeTransform } from '@angular/core';
import { Torrent, TorrentStatus } from './models/torrent.model';
import { FileSizePipe } from 'ngx-filesize';
import { DownloadStatus } from './models/download.model';
import { Torrent, TorrentStatus } from './models/torrent.model';
@Pipe({
name: 'status',
@ -38,8 +38,6 @@ export class TorrentStatusPipe implements PipeTransform {
allSpeeds = downloading.sum((m) => m.speed) / downloading.length;
}
console.log(allBytesDownloaded, allBytesSize, progress, allSpeeds);
let speed: string | string[] = '0';
if (allSpeeds > 0) {
speed = this.pipe.transform(allSpeeds, 'filesize');