Revision 54037f6f pithos-macos/PithosSyncDaemon.m
b/pithos-macos/PithosSyncDaemon.m | ||
---|---|---|
723 | 723 |
[objectRequest setBytesReceivedBlock:^(unsigned long long size, unsigned long long total){ |
724 | 724 |
[activityFacility updateActivity:activity |
725 | 725 |
withMessage:[NSString stringWithFormat:@"Sync: Downloading '%@' (%.0f%%)", |
726 |
[[objectRequest.userInfo valueForKey:@"pithosObject"] name],
|
|
726 |
[[objectRequest.userInfo objectForKey:@"pithosObject"] name],
|
|
727 | 727 |
(100*(activity.currentBytes + size + 0.0)/(activity.totalBytes + 0.0))] |
728 | 728 |
totalBytes:activity.totalBytes |
729 | 729 |
currentBytes:(activity.currentBytes + size)]; |
... | ... | |
915 | 915 |
objectRequest.didFailSelector = @selector(performRequestFailedDelegateInBackground:); |
916 | 916 |
PithosActivity *activity = [activityFacility startActivityWithType:PithosActivityUpload |
917 | 917 |
message:[NSString stringWithFormat:@"Sync: Uploading '%@' (0%%)", object.name] |
918 |
totalBytes:[[objectRequest.userInfo valueForKey:@"bytes"] unsignedIntegerValue]
|
|
918 |
totalBytes:[[objectRequest.userInfo objectForKey:@"bytes"] unsignedIntegerValue]
|
|
919 | 919 |
currentBytes:0]; |
920 | 920 |
dispatch_async(dispatch_get_main_queue(), ^{ |
921 | 921 |
[activityFacility updateActivity:activity withMessage:activity.message]; |
Also available in: Unified diff