mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
some more insignificant changes I have sitting around locally
This commit is contained in:
@@ -122,10 +122,12 @@
|
||||
|
||||
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds maxFields: (NSUInteger) max
|
||||
{
|
||||
NSAssert(max > 0, @"Cannot generate a time string with no fields");
|
||||
|
||||
NSMutableArray * timeArray = [NSMutableArray arrayWithCapacity: MIN(max, 4)];
|
||||
NSUInteger remaining = seconds; //causes problems for some users when it's a uint64_t
|
||||
|
||||
if (max > 0 && seconds >= (24 * 60 * 60))
|
||||
if (seconds >= (24 * 60 * 60))
|
||||
{
|
||||
const NSUInteger days = remaining / (24 * 60 * 60);
|
||||
if (days == 1)
|
||||
|
||||
Reference in New Issue
Block a user