mirror of
https://github.com/sheumann/hush.git
synced 2025-01-11 08:29:54 +00:00
powertop: fix last line detection in process_timer_stats()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
dcb163aa8e
commit
dea28e1e55
@ -420,12 +420,12 @@ static NOINLINE int process_timer_stats(void)
|
|||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
count = skip_whitespace(buf);
|
count = skip_whitespace(buf);
|
||||||
if (strcmp(strchrnul(count, ' '), " total events") == 0)
|
|
||||||
break;
|
|
||||||
p = strchr(count, ',');
|
p = strchr(count, ',');
|
||||||
if (!p)
|
if (!p)
|
||||||
continue;
|
continue;
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
|
if (strcmp(skip_non_whitespace(count), " total events") == 0)
|
||||||
|
break;
|
||||||
if (strchr(count, 'D'))
|
if (strchr(count, 'D'))
|
||||||
continue; /* deferred */
|
continue; /* deferred */
|
||||||
p = skip_whitespace(p); /* points to pid now */
|
p = skip_whitespace(p); /* points to pid now */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user