Changeset 5929


Ignore:
Timestamp:
May 24, 2008, 11:51:51 PM (14 years ago)
Author:
livings124
Message:

attempt to fix "0 times" stats bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatsWindowController.m

    r5926 r5929  
    168168   
    169169    [fUploadedField setStringValue: [NSString stringForFileSize: statsSession.uploadedBytes]];
    170     [fUploadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
     170    [fUploadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    171171                                    statsSession.uploadedBytes]];
    172172    [fUploadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
    173173                                        [NSString stringForFileSize: statsAll.uploadedBytes]]];
    174     [fUploadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
     174    [fUploadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    175175                                    statsAll.uploadedBytes]];
    176176   
    177177    [fDownloadedField setStringValue: [NSString stringForFileSize: statsSession.downloadedBytes]];
    178     [fDownloadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
     178    [fDownloadedField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    179179                                    statsSession.downloadedBytes]];
    180180    [fDownloadedAllField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%@ total", "stats total"),
    181181                                        [NSString stringForFileSize: statsAll.downloadedBytes]]];
    182     [fDownloadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%u bytes", "stats -> bytes"),
     182    [fDownloadedAllField setToolTip: [NSString stringWithFormat: NSLocalizedString(@"%llu bytes", "stats -> bytes"),
    183183                                        statsAll.downloadedBytes]];
    184184   
     
    197197        [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
    198198    else
    199         [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%u times", "stats window -> times opened"),
     199        [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%llu times", "stats window -> times opened"),
    200200                                            statsAll.sessionCount]];
    201201}
Note: See TracChangeset for help on using the changeset viewer.