Skip to content

Commit

Permalink
sadf: Cosmetic fixes
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 Mar 23, 2019
1 parent f475cd2 commit 1c711c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pcp_def_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ void pcp_def_queue_metrics(void)
{
#ifdef HAVE_PCP
pmInDom indom;

pmiAddMetric("proc.runq.runnable",
PM_IN_NULL, PM_TYPE_U64, PM_INDOM_NULL, PM_SEM_INSTANT,
pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
Expand Down Expand Up @@ -473,7 +474,7 @@ void pcp_def_net_dev_metrics(struct activity *a)
}

if (a->id == A_NET_DEV) {
/* Creating metrics for A_NET_DEV */
/* Create metrics for A_NET_DEV */
pmiAddMetric("network.interface.in.packets",
PM_IN_NULL, PM_TYPE_FLOAT, indom, PM_SEM_INSTANT,
pmiUnits(0, -1, 1, 0, PM_TIME_SEC, PM_COUNT_ONE));
Expand Down Expand Up @@ -507,7 +508,7 @@ void pcp_def_net_dev_metrics(struct activity *a)
pmiUnits(0, 0, 0, 0, 0, 0));
}
else {
/* Creating metrics for A_NET_EDEV */
/* Create metrics for A_NET_EDEV */
pmiAddMetric("network.interface.in.errors",
PM_IN_NULL, PM_TYPE_FLOAT, indom, PM_SEM_INSTANT,
pmiUnits(0, -1, 1, 0, PM_TIME_SEC, PM_COUNT_ONE));
Expand Down

0 comments on commit 1c711c1

Please sign in to comment.