From f11bc530c35debb7ecf14c44854719a9f144e74c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 17 Jun 2018 23:41:45 -0700 Subject: [PATCH] hostinfo: fix pid parameter --- lib/sources/sp-hostinfo-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sources/sp-hostinfo-source.c b/lib/sources/sp-hostinfo-source.c index 58a0a4d4..dc636e48 100644 --- a/lib/sources/sp-hostinfo-source.c +++ b/lib/sources/sp-hostinfo-source.c @@ -218,7 +218,7 @@ publish_cpu (SpHostinfoSource *self) sp_capture_writer_set_counters (self->writer, SP_CAPTURE_CURRENT_TIME, -1, - -1, + getpid (), counter_ids, counter_values, self->n_cpu * 2); @@ -366,8 +366,8 @@ sp_hostinfo_source_prepare (SpSource *source) sp_capture_writer_define_counters (self->writer, SP_CAPTURE_CURRENT_TIME, - getpid (), -1, + getpid (), counters, self->n_cpu * 2);