mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
in stats, display sizes in mb's instead of bytes
This commit is contained in:
parent
e9f1e35756
commit
845568f0be
1 changed files with 5 additions and 4 deletions
|
@ -79,12 +79,13 @@ tr_handle * fLib;
|
|||
tr_getCumulativeSessionStats(fLib, &statsAll);
|
||||
tr_getSessionStats(fLib, &statsSession);
|
||||
|
||||
[fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedMiB]];
|
||||
[fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedMiB]
|
||||
#warning make display better
|
||||
[fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedMiB * 1048576]];
|
||||
[fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedMiB * 1048576]
|
||||
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
||||
|
||||
[fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedMiB]];
|
||||
[fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedMiB]
|
||||
[fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedMiB * 1048576]];
|
||||
[fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedMiB * 1048576]
|
||||
stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
|
||||
|
||||
[fRatioField setStringValue: [NSString stringForRatio: statsSession.ratio]];
|
||||
|
|
Loading…
Reference in a new issue