Skip to content

Commit

Permalink
Revert a breaking change, this will be implemented back though.
Browse files Browse the repository at this point in the history
  • Loading branch information
hexafluoride committed Aug 19, 2014
1 parent 8108721 commit 1e6b7ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ByteFlood/InfoClasses/TorrentInfo.cs
Expand Up @@ -31,8 +31,8 @@ public class TorrentInfo : INotifyPropertyChanged
public string SavePath = "";
public TorrentSettings TorrentSettings { get; set; }
public string Name { get; set; }
public int Progress { get { return (int)Math.Min(((GetDownloadedBytes() / SizeToBeDownloaded) * 100), 100); } set { } } // some clever tricks to make sure it never exceeds 100
public long Size { get { return Torrent.Torrent.Size; } } // disclaimer: may not be actually clever
public double Progress { get { return Torrent.Progress; } set { } }
public long Size { get { return Torrent.Torrent.Size; } }
public int DownloadSpeed { get { return Torrent.Monitor.DownloadSpeed; } }
public int MaxDownloadSpeed { get { return Torrent.Settings.MaxDownloadSpeed; } }
public int MaxUploadSpeed { get { return Torrent.Settings.MaxUploadSpeed; } }
Expand Down

0 comments on commit 1e6b7ec

Please sign in to comment.