mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
stats
This commit is contained in:
parent
56b71bd144
commit
90741d6d98
1 changed files with 4 additions and 5 deletions
|
@ -79,13 +79,12 @@ tr_handle * fLib;
|
||||||
tr_getCumulativeSessionStats(fLib, &statsAll);
|
tr_getCumulativeSessionStats(fLib, &statsAll);
|
||||||
tr_getSessionStats(fLib, &statsSession);
|
tr_getSessionStats(fLib, &statsSession);
|
||||||
|
|
||||||
#warning make display better
|
[fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedBytes]];
|
||||||
[fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedMiB * 1048576]];
|
[fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedBytes]
|
||||||
[fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedMiB * 1048576]
|
|
||||||
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
||||||
|
|
||||||
[fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedMiB * 1048576]];
|
[fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedBytes]];
|
||||||
[fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedMiB * 1048576]
|
[fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedBytes]
|
||||||
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
||||||
|
|
||||||
[fRatioField setStringValue: [NSString stringForRatio: statsSession.ratio]];
|
[fRatioField setStringValue: [NSString stringForRatio: statsSession.ratio]];
|
||||||
|
|
Loading…
Reference in a new issue