Changeset 5117


Ignore:
Timestamp:
Feb 25, 2008, 11:57:49 PM (14 years ago)
Author:
livings124
Message:

temp code for testing time output

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSStringAdditions.h

    r5091 r5117  
    3737
    3838+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds;
    39 + (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max;
     39+ (NSString *) timeString: (NSUInteger) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max;
    4040
    4141- (NSComparisonResult) compareIP: (NSString *) string;
  • trunk/macosx/NSStringAdditions.m

    r5099 r5117  
    105105+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds
    106106{
    107     return [NSString timeString: seconds showSeconds:showSeconds maxDigits: UINT_MAX];
     107    return [NSString timeString: seconds showSeconds: showSeconds maxDigits: UINT_MAX];
    108108}
    109109
    110 + (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max
     110+ (NSString *) timeString: (NSUInteger) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max
    111111{
     112    NSLog(@"seconds: %u max digits: %u", seconds, max);
    112113    NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: MIN(max, 4)];
    113114    uint64_t remaining = seconds;
  • trunk/macosx/Torrent.m

    r5099 r5117  
    11141114    int eta = [self isSeeding] ? [self etaRatio] : [self eta];
    11151115    return eta >= 0 ? [NSString timeString: eta showSeconds: YES maxDigits: 2]
    1116             : NSLocalizedString(@"Unknown", "Torrent -> remaining time");
     1116                    : NSLocalizedString(@"Unknown", "Torrent -> remaining time");
    11171117}
    11181118
Note: See TracChangeset for help on using the changeset viewer.