[sysprof] hostinfo: fix cpu/pid parameters for setting cpu counters



commit 851e593ae5eda9bb3a15714a038feedf1693d56c
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 17 11:04:23 2018 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sources/sp-hostinfo-source.c b/lib/sources/sp-hostinfo-source.c
index aa2d9ba..f315264 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]