summaryrefslogtreecommitdiff
path: root/src/bootchart
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-11 18:24:08 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-11 18:24:08 +0200
commita2715692e22647428cceba3d4c300a85ddd4fadf (patch)
treee74ad39167c2f3add04944d7a93a0f1add3a4c57 /src/bootchart
parent4155f7d4be5053d5f34a26e5437fd85e1fe00fa3 (diff)
bootchart: use the bool type where appropriate
Diffstat (limited to 'src/bootchart')
-rw-r--r--src/bootchart/svg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index bf6636cab1..135883fb83 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -881,21 +881,21 @@ static struct ps_struct *get_next_ps(struct ps_struct *ps) {
return NULL;
}
-static int ps_filter(struct ps_struct *ps) {
+static bool ps_filter(struct ps_struct *ps) {
if (!arg_filter)
- return 0;
+ return false;
/* can't draw data when there is only 1 sample (need start + stop) */
if (ps->first == ps->last)
- return -1;
+ return true;
/* don't filter kthreadd */
if (ps->pid == 2)
- return 0;
+ return false;
/* drop stuff that doesn't use any real CPU time */
if (ps->total <= 0.001)
- return -1;
+ return true;
return 0;
}