Browse Source

change to double

Marino Faggiana 8 years ago
parent
commit
2e6350e995

+ 2 - 2
Libraries external/OCCommunicationLib/OCCommunicationLib/OCFileDto.h

@@ -43,7 +43,7 @@
 @property (nonatomic, copy) NSString *etag;
 @property (nonatomic, copy) NSString *permissions;
 @property (nonatomic, copy) NSString *ocId;
-@property long long quotaUsed;
-@property long long quotaAvailable;
+@property double quotaUsed;
+@property double quotaAvailable;
 
 @end

+ 2 - 2
Libraries external/OCCommunicationLib/OCCommunicationLib/OCWebDavClient/Parsers/OCXMLParser.m

@@ -233,9 +233,9 @@ NSString *OCCWebDAVURIKey           = @"uri";
 
         _xmlBucket = nil;
     } else if ([elementName isEqualToString:@"d:quota-used-bytes"]) {
-        _currentFile.quotaUsed = (unsigned long long)[_xmlChars longLongValue];
+        _currentFile.quotaUsed = (double)[_xmlChars longLongValue];
     } else if ([elementName isEqualToString:@"d:quota-available-bytes"]) {
-        _currentFile.quotaAvailable = (unsigned long long)[_xmlChars longLongValue];
+        _currentFile.quotaAvailable = (double)[_xmlChars longLongValue];
     }
 }
 

+ 2 - 2
iOSClient/AppDelegate.h

@@ -59,8 +59,8 @@
 @property (nonatomic, strong) NSString *typeCloud;
 @property (nonatomic, strong) NSString *serverUrl;
 @property (nonatomic, strong) NSString *directoryUser;
-@property long long quotaUsed;
-@property long long quotaAvailable;
+@property double quotaUsed;
+@property double quotaAvailable;
 
 // next version ... ? ...
 @property double currentLatitude;