All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Powertop] [PATCH] Bug-fix: for html & csv value for CPU Information
@ 2014-06-17  8:50 Igor Zhbanov
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Zhbanov @ 2014-06-17  8:50 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Alexandra,

Alexandra Yates wrote:
> 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(-)
>
> diff --git a/src/report/report.cpp b/src/report/report.cpp
> index 9e94607..6eb2b63 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;;
Double semicolon.
> +	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");

-- 
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


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [Powertop] [PATCH] Bug-fix: for html & csv value for CPU Information
@ 2014-06-16 19:28 Alexandra Yates
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandra Yates @ 2014-06-16 19:28 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

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(-)

diff --git a/src/report/report.cpp b/src/report/report.cpp
index 9e94607..6eb2b63 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");
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [Powertop] [PATCH] Bug-fix: for html & csv value for CPU Information
@ 2014-06-16 19:28 Alexandra Yates
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandra Yates @ 2014-06-16 19:28 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

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(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-17  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17  8:50 [Powertop] [PATCH] Bug-fix: for html & csv value for CPU Information Igor Zhbanov
  -- strict thread matches above, loose matches on Subject: below --
2014-06-16 19:28 Alexandra Yates
2014-06-16 19:28 Alexandra Yates

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.