1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00
This commit is contained in:
Mitchell Livingston 2007-11-26 20:23:12 +00:00
parent 56b71bd144
commit 90741d6d98

View file

@ -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]];