Authored by 孙凯

消除警告 review by hongmo

... ... @@ -152,7 +152,7 @@
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)res;
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
}
... ... @@ -179,7 +179,7 @@
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
... ... @@ -211,7 +211,7 @@
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)connection.my_response;
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[connection.currentRequest.URL absoluteString] HTTPMethod:connection.currentRequest.HTTPMethod statusCode:statusCode contentLength:contentLength];
}
... ...
... ... @@ -69,7 +69,7 @@
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
}
... ... @@ -92,7 +92,7 @@
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode];
NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
[[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
}
... ...
... ... @@ -395,7 +395,6 @@
NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithUIGestureRecognizer:gestureRecognizer url:[YH_EventCollector viewPathOfPurposeView:gestureRecognizer.view] ElapsedTime:elapsedTime];
NSLog(@"%@",param);
if (param) {
[[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_GESTURERECOGNIZER];
}
... ... @@ -583,7 +582,6 @@
}
NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithRequestUrl:requestUrl HTTPMethod:method statusCode:statusCode contentLength:length ElapsedTime:elapsedTime];
NSLog(@"%@",param);
if (param) {
[[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_HTTP];
}
... ...