Content-Type: multipart/mixed; boundary="===============3988889965150029034==" MIME-Version: 1.0 From: Alexandra Yates Subject: [Powertop] [PATCH 27/29] report: conditional runs ncurses & cpu html report Date: Wed, 30 Oct 2013 14:21:18 -0700 Message-ID: <1383168080-18233-28-git-send-email-alexandra.yates@linux.intel.com> In-Reply-To: 1383168080-18233-1-git-send-email-alexandra.yates@linux.intel.com To: powertop@lists.01.org List-ID: --===============3988889965150029034== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Adds a conditional to fix n-curses from breaking when calling one_measurment from main. Now will execute report_display_cpu_cstates and report_display_cpu_pstates only when a csv or an HTML report are generated. Signed-off-by: Alexandra Yates --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e34ee6..c57aa57 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -216,10 +216,11 @@ void one_measurement(int seconds, char *workload) report_summary(); w_display_cpu_cstates(); w_display_cpu_pstates(); - report_display_cpu_cstates(); - report_display_cpu_pstates(); + if (reporttype !=3D REPORT_OFF) { + report_display_cpu_cstates(); + report_display_cpu_pstates(); + } report_process_update_display(); - tuning_update_display(); = end_process_data(); -- = 1.7.9.5 --===============3988889965150029034==--