aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2020-11-02 07:33:14 -0600
committerClark Williams <williams@redhat.com>2020-11-02 07:33:14 -0600
commit35017408b2a918d88b5d21d63d36ca3766c1fbf8 (patch)
tree69b5da3b1985803afabf15d7fe6496d8753233a6
parenta36fcb293ca1b5c2e6ad5cb85f6b5ba4bcd3db0c (diff)
downloadstalld-35017408b2a918d88b5d21d63d36ca3766c1fbf8.tar.gz
remove warning from parse_old_task_format
The test at the end to compare waiting_tasks count to the passed in nr_entries will likely fire a lot in normal usage, due to tasks exiting if nothing else. Remove it. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--src/stalld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stalld.c b/src/stalld.c
index cb989e4..013e809 100644
--- a/src/stalld.c
+++ b/src/stalld.c
@@ -438,7 +438,7 @@ static int count_task_lines(char *buffer)
int lines = 0;
/* find the runnable tasks: header */
- ptr = strstr(buffer, "runnable tasks:");
+ ptr = strstr(buffer, TASK_MARKER);
if (ptr == NULL)
return 0;
@@ -544,6 +544,7 @@ int parse_old_task_format(char *buffer, struct task_info *task_info, int nr_entr
break;
}
}
+
return waiting_tasks;
}