From 2e804f22973f0512c742031a377ee3714d6694ed Mon Sep 17 00:00:00 2001 From: anthonyaje Date: Tue, 11 Aug 2020 10:56:19 -0400 Subject: [PATCH] Fix minddata monitoring bug --- mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc b/mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc index 7fa7e6fc78..234dd02340 100644 --- a/mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc +++ b/mindspore/ccsrc/minddata/dataset/engine/perf/monitor.cc @@ -38,8 +38,8 @@ Status Monitor::operator()() { while (!this_thread::is_interrupted() && !(tree_->isFinished())) { for (auto &node : tree_->GetProfilingManager()->GetSamplingNodes()) { RETURN_IF_NOT_OK(node.second->Sample()); - std::this_thread::sleep_for(std::chrono::milliseconds(sampling_interval_)); } + std::this_thread::sleep_for(std::chrono::milliseconds(sampling_interval_)); } // Output all profiling data upon request.