Bug-fix: for html & csv value for CPU Information
Alexandra Yates
PATCH 1/1 Bug-fix: for html & csv value for CPU Information
This patch fixes an error encounterd when printing "CPU Information" on html and csv.
Alexandra Yates (1):
Bug-fix: for html & csv value for CPU Information
src/report/report.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
Alexandra Yates
PATCH 1/1 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.
Signed-off-by Alexandra Yates <alexandra.yates(a)linux.intel.com>
--- src/report/report.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
src/report/report.cpp +3 -1
@@ -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");
Signature · 1 line
1.7.9.5
Igor Zhbanov
Hi Alexandra,
Quoted 13 lines · Alexandra Yates
Added cast from long-int to string to correct printout for "CPU Information" field on html and csv report.
Signed-off-by Alexandra Yates <alexandra.yates(a)linux.intel.com>--- src/report/report.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)src/report/report.cpp +0
-0
src/report/report.cpp static void system_info(void) · line 139
Quoted 5 lines
src/report/report.cpp +1
-1@@ -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;;
Double semicolon.
Quoted 5 lines
src/report/report.cpp +2
-0+ 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");
Signature · 9 lines
Best regards, Igor Zhbanov, Expert Software Engineer, phone: +7 (495) 797 25 00 ext 3981 e-mail: i.zhbanov(a)samsung.com B2B Solution group, Moscow R&D center, Samsung Electronics 12 Dvintsev street, building 1 127018, Moscow, Russian Federation