a little more detailed log to save time converting bytes

This commit is contained in:
Mitchell Livingston 2006-09-28 16:54:44 +00:00
parent de66540961
commit 78d83b063d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {