summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorAndrew Maguire <andrewm4894@gmail.com>2023-01-11 22:42:32 +0000
committerGitHub <noreply@github.com>2023-01-12 00:42:32 +0200
commit8192354570c65ca027272d38289c2ecf78dd446f (patch)
treecc5a3f9c3f1b61b8df9009261fafc051d819125e /collectors
parenta844215ac9adf197397b23c7bcd884079940249b (diff)
rename "Pid" to "PID" in functions (#14144)
* rename "Pid" to "PID" in functions I think it would be better for the case of "Pid" if we stuck to generally expected convention of "PID" * `PPid` to `PPID` * `Pid` to `PID` for pointer in PPID * ignore "Gid" and "Uid" from this PR
Diffstat (limited to 'collectors')
-rw-r--r--collectors/apps.plugin/apps_plugin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/collectors/apps.plugin/apps_plugin.c b/collectors/apps.plugin/apps_plugin.c
index 75f4a50685..fc36ef9d74 100644
--- a/collectors/apps.plugin/apps_plugin.c
+++ b/collectors/apps.plugin/apps_plugin.c
@@ -4591,13 +4591,13 @@ static void apps_plugin_function_processes(const char *transaction, char *functi
// IMPORTANT!
// THE ORDER SHOULD BE THE SAME WITH THE VALUES!
- add_table_field(wb, "Pid", "Process ID", true, "integer", NULL, NAN, "ascending", true, true, true, NULL, "count_unique", false);
+ add_table_field(wb, "PID", "Process ID", true, "integer", NULL, NAN, "ascending", true, true, true, NULL, "count_unique", false);
add_table_field(wb, "Cmd", "Process Name", true, "string", NULL, NAN, "ascending", true, true, false, NULL, "count_unique", false);
#ifdef NETDATA_DEV_MODE
add_table_field(wb, "CmdLine", "Command Line", false, "detail-string:Cmd", NULL, NAN, "ascending", true, false, false, NULL, "count_unique", false);
#endif
- add_table_field(wb, "PPid", "Parent Process ID", false, "integer", NULL, NAN, "ascending", true, false, false, "Pid", "count_unique", false);
+ add_table_field(wb, "PPID", "Parent Process ID", false, "integer", NULL, NAN, "ascending", true, false, false, "PID", "count_unique", false);
add_table_field(wb, "Category", "Category (apps_groups.conf)", true, "string", NULL, NAN, "ascending", true, true, false, NULL, "count_unique", false);
add_table_field(wb, "User", "User Owner", true, "string", NULL, NAN, "ascending", true, false, false, NULL, "count_unique", false);
add_table_field(wb, "Uid", "User ID", false, "integer", NULL, NAN, "ascending", true, false, false, NULL, "count_unique", false);
@@ -4748,19 +4748,19 @@ static void apps_plugin_function_processes(const char *transaction, char *functi
"\n \"group_by\": {"
"\n \"pid\": {"
"\n \"name\":\"Process Tree by PID\","
- "\n \"columns\":[ \"PPid\" ]"
+ "\n \"columns\":[ \"PPID\" ]"
"\n },"
"\n \"category\": {"
"\n \"name\":\"Process Tree by Category\","
- "\n \"columns\":[ \"Category\", \"PPid\" ]"
+ "\n \"columns\":[ \"Category\", \"PPID\" ]"
"\n },"
"\n \"user\": {"
"\n \"name\":\"Process Tree by User\","
- "\n \"columns\":[ \"User\", \"PPid\" ]"
+ "\n \"columns\":[ \"User\", \"PPID\" ]"
"\n },"
"\n \"group\": {"
"\n \"name\":\"Process Tree by Group\","
- "\n \"columns\":[ \"Group\", \"PPid\" ]"
+ "\n \"columns\":[ \"Group\", \"PPID\" ]"
"\n }"
"\n }"
);