[sysprof] hostinfo: fix pid parameter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] hostinfo: fix pid parameter
- Date: Mon, 18 Jun 2018 06:43:58 +0000 (UTC)
commit f11bc530c35debb7ecf14c44854719a9f144e74c
Author: Christian Hergert <chergert redhat com>
Date: Sun Jun 17 23:41:45 2018 -0700
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 58a0a4d..dc636e4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]