Changeset 3981


Ignore:
Timestamp:
Nov 26, 2007, 7:39:08 PM (15 years ago)
Author:
livings124
Message:

in stats, display sizes in mb's instead of bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatsWindowController.m

    r3979 r3981  
    8080    tr_getSessionStats(fLib, &statsSession);
    8181   
    82     [fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedMiB]];
    83     [fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedMiB]
     82    #warning make display better
     83    [fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedMiB * 1048576]];
     84    [fUploadedAllField setStringValue: [[NSString stringForFileSize: statsAll.uploadedMiB * 1048576]
    8485                                        stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
    8586   
    86     [fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedMiB]];
    87     [fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedMiB]
     87    [fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedMiB * 1048576]];
     88    [fDownloadedAllField setStringValue: [[NSString stringForFileSize: statsAll.downloadedMiB * 1048576]
    8889                                            stringByAppendingString: NSLocalizedString(@" total", "stats total")]];
    8990   
Note: See TracChangeset for help on using the changeset viewer.