mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
percentage next to valid downloaded in inspector
This commit is contained in:
parent
da555b7c6f
commit
dc282004c8
2 changed files with 7 additions and 10 deletions
|
@ -39,9 +39,7 @@
|
|||
* fAnnounceField, * fPieceSizeField, * fPiecesField,
|
||||
* fHashField,
|
||||
* fTorrentLocationField, * fDataLocationField,
|
||||
* fDateStartedField,
|
||||
//* fPercentField,
|
||||
* fStateField,
|
||||
* fDateStartedField, * fStateField,
|
||||
* fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
|
||||
* fRatioField, * fSeedersField, * fLeechersField,
|
||||
* fConnectedPeersField, * fDownloadingFromField, * fUploadingToField, * fSwarmSpeedField;
|
||||
|
|
|
@ -156,9 +156,6 @@
|
|||
[fDataLocationField setSelectable: NO];
|
||||
|
||||
[fStateField setStringValue: @""];
|
||||
/*
|
||||
[fPercentField setStringValue: @""];
|
||||
*/
|
||||
[fRatioField setStringValue: @""];
|
||||
|
||||
[fSeedersField setStringValue: @""];
|
||||
|
@ -248,11 +245,13 @@
|
|||
if (numberSelected == 1)
|
||||
{
|
||||
torrent = [fTorrents objectAtIndex: 0];
|
||||
|
||||
|
||||
//append percentage to amount downloaded if 1 torrent
|
||||
[fDownloadedValidField setStringValue: [[fDownloadedValidField stringValue]
|
||||
stringByAppendingFormat: @" (%.2f%%)", 100.0 * [torrent progress]]];
|
||||
|
||||
[fStateField setStringValue: [torrent stateString]];
|
||||
/*
|
||||
[fPercentField setStringValue: [NSString stringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]];
|
||||
*/
|
||||
|
||||
int seeders = [torrent seeders], leechers = [torrent leechers];
|
||||
[fSeedersField setStringValue: seeders < 0 ? @"" : [NSString stringWithInt: seeders]];
|
||||
[fLeechersField setStringValue: leechers < 0 ? @"" : [NSString stringWithInt: leechers]];
|
||||
|
|
Loading…
Reference in a new issue