[Cbe-oss-dev] [PATCH] spu-tools: Fixed load averange printing
Andre Detsch
adetsch at br.ibm.com
Wed Mar 19 01:05:57 EST 2008
Load averange values are represented as numbers, not percentages.
This patch fixes this in spu-top.
Signed-off-by: Andre Detsch <adetsch at br.ibm.com>
Index: libspe2/tools/spu-tools/spu-tools.spec
===================================================================
--- libspe2.orig/tools/spu-tools/spu-tools.spec
+++ libspe2/tools/spu-tools/spu-tools.spec
@@ -1,7 +1,7 @@
Summary: user space tools for Cell/B.E.
Name: spu-tools
Version: 1.1
-Release: 1
+Release: 2
License: GPL
Group: Applications/System
Source0: spu-tools.tar.bz2
@@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT
%dir /%{_prefix}/share/man/man1/spu-ps.1.gz
%changelog
+* Tue Mar 18 2008 Andre Detsch <adetsch at br.ibm.com> 1.1-2
+- Fixed load averange printing.
+
* Thu Mar 13 2008 Andre Detsch <adetsch at br.ibm.com> 1.1-1
- Making Per-Process view explanation a bit clearer.
- Additional space for some spu statistics.
Index: libspe2/tools/spu-tools/src/ChangeLog
===================================================================
--- libspe2.orig/tools/spu-tools/src/ChangeLog
+++ libspe2/tools/spu-tools/src/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-18 Andre Detsch <adetsch at br.ibm.com>
+
+ * spu-top.c: Fixed load averange printing.
+
2008-03-13 Andre Detsch <adetsch at br.ibm.com>
* spu-top.c: making Per-Process view explanation a bit clearer.
Index: libspe2/tools/spu-tools/src/spu-top.c
===================================================================
--- libspe2.orig/tools/spu-tools/src/spu-top.c
+++ libspe2/tools/spu-tools/src/spu-top.c
@@ -151,7 +151,7 @@ void print_cpu_info(int min_time_has_pas
wbkgdset(stdscr, COLOR_PAIR(WHITE_ON_BLACK));
get_cpus_loadavg(&avg1min, &avg5min, &avg15min);
- mvprintw(1, 0, "Cpu(s) load avg: %5.1f%,%5.1f%,%5.1f%\n",
+ mvprintw(1, 0, "Cpu(s) load avg: %4.2f, %4.2f, %4.2f\n",
avg1min, avg5min, avg15min);
if (min_time_has_passed)
@@ -169,7 +169,7 @@ void print_spu_info(struct spu** spus, i
wbkgdset(stdscr, COLOR_PAIR(WHITE_ON_BLACK));
get_spus_loadavg(&avg1min, &avg5min, &avg15min);
- mvprintw(2, 0, "Spu(s) load avg: %5.1f%,%5.1f%,%5.1f%\n",
+ mvprintw(2, 0, "Spu(s) load avg: %4.2f, %4.2f, %4.2f\n",
avg1min, avg5min, avg15min);
if (min_time_has_passed)
More information about the cbe-oss-dev
mailing list