projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb163a
)
powertop: fix last line detection in process_timer_stats()
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 4 Nov 2010 22:30:11 +0000
(23:30 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 4 Nov 2010 22:30:11 +0000
(23:30 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/powertop.c
patch
|
blob
|
history
diff --git
a/procps/powertop.c
b/procps/powertop.c
index 87efbe892eb5ee7dea50ef3930e329806c20a110..da7f052589331f36e7e974beb8906a62f2e9b266 100644
(file)
--- a/
procps/powertop.c
+++ b/
procps/powertop.c
@@
-420,12
+420,12
@@
static NOINLINE int process_timer_stats(void)
int idx;
count = skip_whitespace(buf);
- if (strcmp(strchrnul(count, ' '), " total events") == 0)
- break;
p = strchr(count, ',');
if (!p)
continue;
*p++ = '\0';
+ if (strcmp(skip_non_whitespace(count), " total events") == 0)
+ break;
if (strchr(count, 'D'))
continue; /* deferred */
p = skip_whitespace(p); /* points to pid now */