follow comments

scopeFix
Xin Pan 7 years ago
parent 5a9f17f02b
commit d1ea74d3b9

@ -434,8 +434,8 @@ int VariableResponse::Parse(Source* source) {
return tag;
}
meta_.set_profile(profiling);
int64_t lisner_id = platform::ListenerId();
if (lisner_id <= 0) {
int64_t listener_id = platform::ListenerId();
if (listener_id <= 0) {
break;
}
if (profiling && !platform::IsProfileEnabled()) {
@ -444,7 +444,7 @@ int VariableResponse::Parse(Source* source) {
// TODO(panyx0718): Should we allow to customize file dir.
platform::DisableProfiler(
platform::EventSortingKey::kDefault,
string::Sprintf("/tmp/profile_ps_%lld", lisner_id));
string::Sprintf("/tmp/profile_ps_%lld", listener_id));
}
break;
}

Loading…
Cancel
Save