From 851e593ae5eda9bb3a15714a038feedf1693d56c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 17 May 2018 11:04:23 +0100 Subject: [PATCH] hostinfo: fix cpu/pid parameters for setting cpu counters We don't need pid here anyway, since we're just passing on counters for the system itself. --- lib/sources/sp-hostinfo-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sources/sp-hostinfo-source.c b/lib/sources/sp-hostinfo-source.c index aa2d9ba2..f315264c 100644 --- a/lib/sources/sp-hostinfo-source.c +++ b/lib/sources/sp-hostinfo-source.c @@ -186,7 +186,7 @@ publish_cpu (SpHostinfoSource *self) sp_capture_writer_set_counters (self->writer, SP_CAPTURE_CURRENT_TIME, - getpid (), + -1, -1, counter_ids, counter_values,