Changeset 946 for trunk/macosx/Torrent.m
- Timestamp:
- Sep 28, 2006, 4:06:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r941 r946 421 421 422 422 NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self dataLocation]]; 423 float remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] floatValue], 424 torrentRemaining = (float)[self size] * (1.0 - [self progress]); 423 uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue], 424 torrentRemaining = [self size] * (uint64_t)(1.0 - [self progress]); 425 426 NSLog(@"Remaining disk space: %qu", remainingSpace); 427 NSLog(@"Torrent remaining size: %qu", torrentRemaining); 425 428 426 429 if (remainingSpace - torrentRemaining <= 10240.0) … … 436 439 return NO; 437 440 } 438 439 441 return YES; 440 442 }
Note: See TracChangeset
for help on using the changeset viewer.