summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e61f047)
raw | patch | inline | side by side (parent: e61f047)
author | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Sun, 31 May 2015 18:48:27 +0000 (20:48 +0200) | ||
committer | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Sun, 31 May 2015 18:48:27 +0000 (20:48 +0200) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index c1f92a7dc1e8c0bfe1742cc38c9d6fc3b267f5cd..7306edb01a9b6c0b6f2b477daba1cde20d6762ba 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
static procstat_t *list_head_g = NULL;
-static _Bool ps_ctx_switch = 0;
+static _Bool report_ctx_switch = 0;
#if HAVE_THREAD_INFO
static mach_port_t port_host_self;
"one boolean argument.");
continue;
}
- ps_ctx_switch = c->values[0].value.boolean ? 1 : 0;
+ report_ctx_switch = c->values[0].value.boolean ? 1 : 0;
}
else
{
plugin_dispatch_values (&vl);
}
- if ( ps_ctx_switch )
+ if ( report_ctx_switch )
{
sstrncpy (vl.type, "ps_cswitch_vol", sizeof (vl.type));
vl.values[0].derive = ps->cswitch_vol;
DEBUG("ps_read_process: not get io data for pid %i",pid);
}
- if ( ps_ctx_switch )
+ if ( report_ctx_switch )
{
if ( (ps_read_tasks_status(pid, ps)) == NULL)
{