]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
processes plugin: Add a comment to point readers at more documentation.
authorFlorian Forster <octo@collectd.org>
Sat, 24 Feb 2024 21:52:40 +0000 (22:52 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 24 Feb 2024 22:21:29 +0000 (23:21 +0100)
src/processes.c

index 482941b45b01819fc86bbd06d18e4bb3269d20f7..736335e7ed402b9dbb61a3b9e8d9a68d21ec7b2f 100644 (file)
@@ -1554,6 +1554,10 @@ static int ps_read_process(long pid, process_entry_t *ps, char *state) {
     return -1;
   }
 
+  /* The fields in /proc/<pid>/stat are described in the proc(5) manpage. The
+   * code just skipped over fields above, so field[0] is documented as field "3"
+   * in the manual page. */
+
   *state = fields[0][0];
 
   if (*state == 'Z') {