mirror of
https://github.com/transmission/transmission
synced 2025-02-05 05:53:59 +00:00
a little more detailed log to save time converting bytes
This commit is contained in:
parent
de66540961
commit
78d83b063d
1 changed files with 2 additions and 2 deletions
|
@ -423,8 +423,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
|
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
|
||||||
torrentRemaining = [self size] * (uint64_t)(1.0 - [self progress]);
|
torrentRemaining = [self size] * (uint64_t)(1.0 - [self progress]);
|
||||||
|
|
||||||
NSLog(@"Remaining disk space: %qu", remainingSpace);
|
NSLog(@"Remaining disk space: %qu (%@)", remainingSpace, [NSString stringForFileSize: remainingSpace]);
|
||||||
NSLog(@"Torrent remaining size: %qu", torrentRemaining);
|
NSLog(@"Torrent remaining size: %qu (%@)", torrentRemaining, [NSString stringForFileSize: torrentRemaining]);
|
||||||
|
|
||||||
if (remainingSpace <= torrentRemaining)
|
if (remainingSpace <= torrentRemaining)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue