Skip to content

Commit

Permalink
sadf: PCP: Save hostname in PCP archive
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
  • Loading branch information
sysstat committed Apr 6, 2019
1 parent 14ab20b commit 995625b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sadf_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,9 @@ __printf_funct_t print_pcp_header(void *parm, int action, char *dfile,
pmiSetTimezone("UTC");
}

/* Save hostname */
pmiSetHostname(file_hdr->sa_nodename);

/* Save number of CPU in PCP archive */
pmiAddMetric("hinv.ncpu",
PM_IN_NULL, PM_TYPE_U32, PM_INDOM_NULL, PM_SEM_DISCRETE,
Expand Down

0 comments on commit 995625b

Please sign in to comment.