projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
processes: delete added white spaces
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
c1f92a7
..
d549291
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-223,7
+223,7
@@
typedef struct procstat
static procstat_t *list_head_g = NULL;
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;
#if HAVE_THREAD_INFO
static mach_port_t port_host_self;
@@
-362,7
+362,7
@@
static int ps_list_match (const char *name, const char *cmdline, procstat_t *ps)
static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t *entry)
{
procstat_t *ps;
static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t *entry)
{
procstat_t *ps;
-
procstat_entry_t *pse;
+ procstat_entry_t *pse;
if (entry->id == 0)
return;
if (entry->id == 0)
return;
@@
-498,7
+498,6
@@
static void ps_list_add (const char *name, const char *cmdline, procstat_entry_t
ps->cpu_user_counter += pse->cpu_user;
ps->cpu_system_counter += pse->cpu_system;
ps->cpu_user_counter += pse->cpu_user;
ps->cpu_system_counter += pse->cpu_system;
-
}
}
}
}
@@
-617,7
+616,7
@@
static int ps_config (oconfig_item_t *ci)
"one boolean argument.");
continue;
}
"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
{
}
else
{
@@
-768,7
+767,7
@@
static void ps_submit_proc_list (procstat_t *ps)
plugin_dispatch_values (&vl);
}
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;
{
sstrncpy (vl.type, "ps_cswitch_vol", sizeof (vl.type));
vl.values[0].derive = ps->cswitch_vol;
@@
-1193,7
+1192,7
@@
int ps_read_process (int pid, procstat_t *ps, char *state)
DEBUG("ps_read_process: not get io data for pid %i",pid);
}
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)
{
{
if ( (ps_read_tasks_status(pid, ps)) == NULL)
{