mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Log the volume name to help in debugging.
This commit is contained in:
parent
78d83b063d
commit
1fabd22ddb
1 changed files with 1 additions and 0 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue