Log the volume name to help in debugging.

This commit is contained in:
Mitchell Livingston 2006-09-28 17:02:41 +00:00
parent 78d83b063d
commit 1fabd22ddb
1 changed files with 1 additions and 0 deletions

View File

@ -423,6 +423,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
torrentRemaining = [self size] * (uint64_t)(1.0 - [self progress]);
NSLog(@"Volume: %@", [[[NSFileManager defaultManager] componentsToDisplayForPath: [self dataLocation]] objectAtIndex: 0]);
NSLog(@"Remaining disk space: %qu (%@)", remainingSpace, [NSString stringForFileSize: remainingSpace]);
NSLog(@"Torrent remaining size: %qu (%@)", torrentRemaining, [NSString stringForFileSize: torrentRemaining]);