mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 10:28:32 +00:00
temp code for testing time output
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
+ (NSString *) stringForRatio: (float) ratio;
|
+ (NSString *) stringForRatio: (float) ratio;
|
||||||
|
|
||||||
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds;
|
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds;
|
||||||
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max;
|
+ (NSString *) timeString: (NSUInteger) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max;
|
||||||
|
|
||||||
- (NSComparisonResult) compareIP: (NSString *) string;
|
- (NSComparisonResult) compareIP: (NSString *) string;
|
||||||
|
|
||||||
|
|||||||
@@ -107,8 +107,9 @@
|
|||||||
return [NSString timeString: seconds showSeconds: showSeconds maxDigits: UINT_MAX];
|
return [NSString timeString: seconds showSeconds: showSeconds maxDigits: UINT_MAX];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max
|
+ (NSString *) timeString: (NSUInteger) seconds showSeconds: (BOOL) showSeconds maxDigits: (NSUInteger) max
|
||||||
{
|
{
|
||||||
|
NSLog(@"seconds: %u max digits: %u", seconds, max);
|
||||||
NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: MIN(max, 4)];
|
NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: MIN(max, 4)];
|
||||||
uint64_t remaining = seconds;
|
uint64_t remaining = seconds;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user