From c9c86ff37a83bad91a1b28aa0324f5929d170513 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 16 Jun 2018 20:07:38 -0700 Subject: [PATCH] hostinfo: up the sample rate Now that our CPU sampling has a bit less overhead, we can up the sampling rate a bit without too much affect on performance. --- lib/sources/sp-hostinfo-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sources/sp-hostinfo-source.c b/lib/sources/sp-hostinfo-source.c index 38bc03e8..58a0a4d4 100644 --- a/lib/sources/sp-hostinfo-source.c +++ b/lib/sources/sp-hostinfo-source.c @@ -291,7 +291,8 @@ sp_hostinfo_source_start (SpSource *source) g_assert (SP_IS_HOSTINFO_SOURCE (self)); - self->handler = g_timeout_add (250, collect_hostinfo_cb, self); + /* 20 samples per second */ + self->handler = g_timeout_add (1000/20, collect_hostinfo_cb, self); } static void