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.
This commit is contained in:
Christian Hergert
2018-05-17 11:04:23 +01:00
parent 06a5113246
commit 851e593ae5

View File

@ -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,