From d1ea74d3b99e227f89ae5f9a4130a57abdfaa283 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Mon, 7 May 2018 13:07:48 +0800 Subject: [PATCH] follow comments --- paddle/fluid/operators/detail/variable_response.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/detail/variable_response.cc b/paddle/fluid/operators/detail/variable_response.cc index 335491e95d..f4a374d56d 100644 --- a/paddle/fluid/operators/detail/variable_response.cc +++ b/paddle/fluid/operators/detail/variable_response.cc @@ -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; } -- GitLab