aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandra Yates <alexandra.yates@linux.intel.com>2014-06-16 12:19:31 -0700
committerAlexandra Yates <alexandra.yates@linux.intel.com>2014-06-18 14:23:18 -0700
commita5465a282107da5205b7928fe4ce4f642d1fd770 (patch)
treea9fd4b7858b08b3692392accfcca018f8af08bb0
parente7c665fddad2bdb09d8fa48ccc564ac5bd12918a (diff)
Bug-fix: for html & csv value for CPU Information
Added cast from long-int to string to correct printout for "CPU Information" field on html and csv report. Tested: by Christophe Prigent and Igor Zhbanov Signed-off-by: Alexandra Yates <alexandra.yates@linux.intel.com>
-rw-r--r--src/report/report.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/report/report.cpp b/src/report/report.cpp
index 9e94607..d55531e 100644
--- a/src/report/report.cpp
+++ b/src/report/report.cpp
@@ -136,7 +136,9 @@ static void system_info(void)
system_data[5].append(str.c_str());
str = cpu_model();
system_data[6]=__("CPU Information");
- system_data[7]= sysconf(_SC_NPROCESSORS_ONLN);
+ stringstream n_proc;
+ n_proc << sysconf(_SC_NPROCESSORS_ONLN);
+ system_data[7]= n_proc.str();
system_data[7].append(str.c_str());
str = read_sysfs_string("/etc/system-release");