File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ extern NSString *const QNReportQualityKeyTotalElapsedTime;
123123extern NSString *const QNReportQualityKeyRequestsCount;
124124extern NSString *const QNReportQualityKeyRegionsCount;
125125extern NSString *const QNReportQualityKeyBytesSent;
126+ extern NSString *const QNReportQualityKeyFileSize;
126127extern NSString *const QNReportQualityKeyCloudType;
127128extern NSString *const QNReportQualityKeyErrorType;
128129extern NSString *const QNReportQualityKeyErrorDescription;
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ - (NSString *)qualityResult{
238238NSString * const QNReportQualityKeyRequestsCount = @" requests_count" ;
239239NSString * const QNReportQualityKeyRegionsCount = @" regions_count" ;
240240NSString * const QNReportQualityKeyBytesSent = @" bytes_sent" ;
241+ NSString * const QNReportQualityKeyFileSize = @" file_size" ;
241242NSString * const QNReportQualityKeyCloudType = @" cloud_type" ;
242243NSString * const QNReportQualityKeyErrorType = @" error_type" ;
243244NSString * const QNReportQualityKeyErrorDescription = @" error_description" ;
Original file line number Diff line number Diff line change @@ -484,6 +484,7 @@ + (void)reportQuality:(NSString *)key
484484 } else if ([source isKindOfClass: [NSData class ]]) {
485485 fileSize = [(NSData *)source length ];
486486 }
487+ [item setReportValue: @(fileSize) forKey: QNReportQualityKeyFileSize];
487488 if (responseInfo.isOK && fileSize > 0 && taskMetrics.totalElapsedTime ) {
488489 NSNumber *speed = [QNUtils calculateSpeed: fileSize totalTime: taskMetrics.totalElapsedTime.longLongValue];
489490 [item setReportValue: speed forKey: QNReportQualityKeyPerceptiveSpeed];
You can’t perform that action at this time.
0 commit comments